The NetBSD Project

CVS log for src/tests/bin/sh/

[BACK] Up to [] / src / tests / bin / sh

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 22 05:21:54 2021 UTC (2 years, 3 months ago) by kre
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.8: +42 -1 lines
Diff to previous 1.8 (colored)

PR bin/53550

/bin/sh's processing of here doc expansions has changed.   Now it happens
in the context of the parent shell, so side effects are visible there,
just like all other redirection expansions.

We need to stop testing that that doesn't happen, and instead test
that it does.   This is that change.

Add another test case which is testing exactly the example from the PR
(well, with a different exit status, 1 is too generic and could happen
by accident) to make sure we don't reintroduce that bug sometime.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 9 00:04:51 2021 UTC (2 years, 5 months ago) by kre
Branch: MAIN
Changes since 1.7: +31 -1 lines
Diff to previous 1.7 (colored)

Add a new test case to check for correct parsing and execution
of a few bizarre here document usages, such as

	: << do | for x in xxx
	do echo $x

which should work, but never have done.  (See the source for others).

This test case will currently fail, until the bug is fixed
(already done, to be committed very soon).

Revision / (download) - annotate - [select for diffs], Mon Jun 10 22:09:59 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.6: +44 -5 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD

Revision / (download) - annotate - [select for diffs], Sat Jan 26 22:00:37 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.6: +44 -5 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 22 14:31:53 2019 UTC (5 years, 1 month ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.6: +44 -5 lines
Diff to previous 1.6 (colored)

Add sub tests to the quoting test case, to demonstrate a parsing
bug (and its fix (depending upon whether the test is run against
an unfixed, or fixed, shell).

An obvious indication of the failure is the following (one of the
new sub-tests)

cat <<EOF

which should output


as a here doc is treated as a double quoted string, except
that the " character is just a character.  In such a string,
the \ is only an escape character when the following character
is special, otherwise it represents a literal \ (which is the
case here).

An unfixed shell will omit the backslashes in the output.

It gets even more wrong if the % chars are replaced by "
(double quote) chars, which should make no difference, other
than the corresponding change, in the output.   But doesn't
(it doesn't even produce output broken in a similar way).

This one is a harder case to be specific about however,
as while the fixed (and expected in the test) output is what
is technically correct, only a few shells actually produce
it, most generate something different (but not all the same.)

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 31 16:21:52 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.5: +25 -19 lines
Diff to previous 1.5 (colored)

Added lots more end delimiter tests (some weird cases...). Also
use printf %s instead of echo, as there are embedded \ chars in
some of the strings, and some other (nameless) shells insist on
treating \ in the args to echo as something special... (from kre@)

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 27 14:52:40 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.4: +318 -13 lines
Diff to previous 1.4 (colored)

PR bin/50993 - lots of new here document tests to validate all of
the changes made to fix that PR.   LOTS more tests...  A few general
improvements to the way the tests work and results are reported
as well. (from kre@)

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 8 14:21:02 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.3: +1 -7 lines
Diff to previous 1.3 (colored)

Cleanup left over (dead) debugging code (from kre)

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 1 12:39:35 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.2: +6 -7 lines
Diff to previous 1.2 (colored)

Improved handling of TEST_SH so that it is possible to define it
to the name of a shell, plus options that shell needs to run it
in the correct mode to be tested: eg: TEST_SH='bash -o posix'
Also finished the implementation of tests of "set -n" now that
the NetBSD shell supports that as it should. (from kre)

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 29 23:52:53 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.1: +210 -22 lines
Diff to previous 1.1 (colored)

more tests from kre

Revision / (download) - annotate - [select for diffs], Tue Apr 17 00:09:02 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since +73 -0 lines
Diff to previous (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head

Revision, Sat Mar 17 16:33:11 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.1: +0 -73 lines

file was added on branch yamt-pagecache on 2012-04-17 00:09:02 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 17 16:33:11 2012 UTC (11 years, 11 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Branch point for: yamt-pagecache

Deprecate tests/util.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>