aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/run-all (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nofork: fix a bug uncovered by hush testsuite (forgotten fflush)Denys Vlasenko2017-08-031-1/+1
| | | | | | | function old new delta run_nofork_applet 280 287 +7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: syncronize ash_test/run-all and hush_test/run-all a bitDenys Vlasenko2017-07-061-23/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a bug in FEATURE_SH_STANDALONE=y config. Closes 9186Denys Vlasenko2016-08-191-1/+2
| | | | | | | | | | | | | | | | | | | | | Run this in a "sh SCRIPT": sha256sum /dev/null echo END sha256sum is a NOEXEC applet. It runs in a forked child. Then child exit()s. By this time, entire script is read, and buffered in a FILE object from fopen("SCRIPT"). But fgetc() did not consume entire input. exit() lseeks back by -9 bytes, from <eof> to 'e' in 'echo'. (this may be libc-specific). This change of fd position *is shared with the parent*! Now parent can read more, and it thinks there is another "echo END". End result: two "echo END"s are run. Fix this by _exit()ing instead. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add tests for interrupting readDenys Vlasenko2011-05-091-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hust test: complain if busybox binary can't be foundDenys Vlasenko2009-08-121-6/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix \<newline> handling on NOMMUDenys Vlasenko2009-08-121-10/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush tests: remove the requirement that .config is in ../..Denys Vlasenko2009-08-121-4/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush_test: stop mixing tabs/spaces for indentationMike Frysinger2009-06-011-37/+37
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: filter test output to avoid C lib differencesMike Frysinger2009-06-011-0/+4
| | | | | | | | The getopt function in some C libraries wraps the option in single quotes while others do not. Avoid the issue by running sed on the output and strip all quotes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* source the .config so tests can signal they need to be skipped due to ↵Mike Frysinger2009-04-091-2/+11
| | | | feature disable
* hush: fix a bunch of obscure while/until/continue bugsDenis Vlasenko2009-04-061-1/+1
| | | | | | | | | | function old new delta run_list 1159 1214 +55 done_pipe 106 123 +17 done_command 86 98 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 84/0) Total: 84 bytes
* trim trailing slashes from specified subdir so we output to the right placeMike Frysinger2009-04-021-0/+1
|
* remove ((expr)) bash'ismDenis Vlasenko2009-03-281-1/+1
|
* make sure we exit based on test failure rather than always exiting with 0Mike Frysinger2009-03-281-3/+9
|
* hush: continue fixing quoting and subst: fix glob_and_assign.tests.Denis Vlasenko2008-06-171-0/+9
|
* hush: support "! cmd | cmd" negationDenis Vlasenko2008-06-141-2/+2
| | | | | | | | | | | | | function old new delta done_word 749 791 +42 run_list 1821 1859 +38 checkjobs 334 351 +17 done_pipe 61 74 +13 static.reserved_list 132 144 +12 initialize_context 53 45 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/1 up/down: 122/-8) Total: 114 bytes
* hush: reinstate `cmd` handling for NOMMU (with fat big warning).Denis Vlasenko2008-02-101-1/+4
| | | | | | | | | | hush: fix a case where none of pipe members could be started because of fork failure hush: rename functions: xxx_real -> xxx hush: try to add a bit more of vfork-friendliness hush: add rudimentary design docs hush: add TODO (newly discovered bug with globbing)
* hush: fix $ expansion in redirections, add testcase for thatDenis Vlasenko2007-11-231-0/+1
|
* hush: plug memory leakDenis Vlasenko2007-11-231-0/+1
|
* hush: reinstate hush_test, add testcases for process substDenis Vlasenko2007-05-111-0/+59
|
* hush: fix bug in interactive shell introduced yesterdayDenis Vlasenko2007-05-111-59/+0
| | | | | hush: fix `process subst` (2 bugs) NB: will delete and re-add hush_test in order to change file modes
* hush: fix "unterminated last line loops forever" bugDenis Vlasenko2007-05-101-0/+59
hush: add testsuite infrastructure