aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* make sure we exit based on test failure rather than always exiting with 0Mike Frysinger2009-03-281-3/+9
|
* hush: fix segv at repeated "set -- a b c" + "shift"Denis Vlasenko2009-03-222-0/+119
|
* hush: tweak testsuiteDenis Vlasenko2009-03-202-1/+5
|
* hush: fix bug 207 and "hush -c" parameter passing.Denis Vlasenko2009-03-202-0/+4
| | | | | | | Now hush -c 'printf "%s\n" "$@"' (prints "\n") and hush -c 'printf "%s\n" "$@"' qwe asd (prints "asd\n") both work correctly
* hush: fix NOMMU bug (analogous to preceding commit for MMU)Denis Vlasenko2008-10-132-7/+7
|
* testcase for the last fixDenis Vlasenko2008-10-132-0/+20
|
* hush: fix environment and memory leaks, add tests for themDenis Vlasenko2008-10-095-0/+127
| | | | | | | | | | | | | | | function old new delta add_malloced_string_to_strings - 110 +110 run_list 1999 2086 +87 free_strings_and_unsetenv - 87 +87 hush_version_str - 18 +18 pseudo_exec_argv 139 146 +7 static.version_str 17 - -17 free_pipe 237 210 -27 done_word 790 642 -148 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/2 up/down: 309/-192) Total: 117 bytes
* hush: fix mishandling of a'b'c=fff as assignments. They are not.Denis Vlasenko2008-08-044-0/+57
| | | | | | | | | | | | | | function old new delta parse_stream 1920 2004 +84 done_word 715 752 +37 parse_and_run_stream 328 333 +5 builtin_exec 25 29 +4 pseudo_exec_argv 138 139 +1 run_list 2006 1999 -7 is_assignment 215 134 -81 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/2 up/down: 131/-88) Total: 43 bytes
* hush: support $_NUMBERS variable namesDenis Vlasenko2008-07-314-0/+6
|
* hush: fix "case ... in <newline> word)..."Denis Vlasenko2008-07-312-0/+9
|
* hush: small fix for repeated continue and fix for wrong loop depth countDenis Vlasenko2008-07-292-0/+12
| | | | | after Ctrl-C; with testcase for first one
* hush: fix break'ing out of {} and () groups; with testcaseDenis Vlasenko2008-07-292-0/+17
| | | | | | | | function old new delta builtin_break 93 129 +36 builtin_continue 21 47 +26 run_list 1973 1976 +3
* hush: add #defines to switch off break/continue if loops are not supportedDenis Vlasenko2008-07-292-0/+8
| | | | | | *: remove a few inline keywords no code changes
* hush: fix "while false; ..." exitcode; add testsuitesDenis Vlasenko2008-07-284-0/+21
|
* hush: support "break N" and "continue N"Denis Vlasenko2008-07-286-0/+18
| | | | | | | | | | | | | | | fix non-detection of builtins and applets in "v=break; ...; $v; ..." case add testsuite entries for the above function old new delta builtin_break 12 93 +81 run_list 1948 1971 +23 builtin_continue 12 21 +9 pseudo_exec_argv 132 138 +6 builtin_exec 23 25 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 121/0) Total: 121 bytes
* hush: finish and enable optional case...esac support. Code size cost:Denis Vlasenko2008-07-282-0/+30
| | | | | | | | | | | | | | | | function old new delta run_list 1891 2075 +184 parse_stream 1764 1847 +83 expand_strvec_to_string - 83 +83 done_word 647 715 +68 static.reserved_list 144 168 +24 static.reserved_match - 12 +12 done_pipe 95 105 +10 builtin_exit 48 46 -2 builtin_eval 127 54 -73 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 5/2 up/down: 464/-75) Total: 389 bytes
* hush: support "for if in do done then; do echo $if; done" caseDenis Vlasenko2008-07-062-0/+6
| | | | | | | | | | function old new delta done_pipe 83 95 +12 parse_stream 1758 1764 +6 done_word 674 647 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 18/-27) Total: -9 bytes
* hush: support "for v; do ... done" syntax (implied 'in "$@"')Denis Vlasenko2008-07-052-0/+10
|
* hush: fix a case where "$@" must expand to no word at allDenis Vlasenko2008-07-052-0/+16
|
* cosmetics in hush testsuitesDenis Vlasenko2008-06-182-3/+1
|
* fix globbing in unquoted $* and $@Denis Vlasenko2008-06-182-0/+14
|
* hush: add testsuite for "no globbing in redirection" rule.Denis Vlasenko2008-06-186-0/+51
| | | | | simplify redirection habdling
* hush: expand quote3.tests and move from hush-bugs to hush-parsingDenis Vlasenko2008-06-184-11/+33
|
* hush: fix $$ handlingDenis Vlasenko2008-06-172-0/+2
|
* hush: fix "for a in; do echo 'I should never run'; done" bugDenis Vlasenko2008-06-172-0/+0
|
* move glob_and_assign.tests from hush-bugs to hush-globDenis Vlasenko2008-06-172-0/+0
|
* hush: continue fixing quoting and subst: fix glob_and_assign.tests.Denis Vlasenko2008-06-173-19/+24
|
* hush: delete hush-bugs/glob_and_vars.tests for realDenis Vlasenko2008-06-161-2/+0
|
* hush: fix hush-bugs/glob_and_vars.tests testcase:Denis Vlasenko2008-06-165-1/+7
| | | | | | | | | | | | | | globbing is now done _after_ variable/`cmd` substitution function old new delta expand_strvec_to_strvec 7 353 +346 expand_variables 1348 1383 +35 add_string_to_strings - 28 +28 globhack 114 - -114 done_word 778 579 -199 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/1 up/down: 409/-313) Total: 96 bytes
* hush: fix a bug where we were requiring semicolon here: (cmd;)Denis Vlasenko2008-06-143-2/+1
| | | | | | | | | | | also fix a bug where after error prompt is not shown. function old new delta parse_stream 1612 1638 +26 parse_and_run_stream 361 375 +14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 40/0) Total: 40 bytes
* hush: add support for ':'; create testsuite entriesDenis Vlasenko2008-06-149-5/+17
| | | | | | | text data bss dec hex filename 809569 612 7044 817225 c7849 busybox_old 809528 612 7044 817184 c7820 busybox_unstripped
* hush: support "! cmd | cmd" negationDenis Vlasenko2008-06-145-2/+57
| | | | | | | | | | | | | 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: fix for nested $()s with escapes + testsuiteDenis Vlasenko2008-06-123-1/+14
|
* hush: more backtick and quoting fixes...Denis Vlasenko2008-06-102-0/+17
|
* hush: fix escaping of \[*?; add testsuites for these and for globbingDenis Vlasenko2008-06-106-0/+20
|
* hush: fix yet another falloutDenis Vlasenko2008-06-104-1/+0
| | | | | hush: move fixed testsuites out of hush-bugs/*
* hush: fix some fallout from prev commits, add testsuiteDenis Vlasenko2008-06-102-0/+10
|
* hush: add yet another bug to testsuite :(Denis Vlasenko2008-06-082-0/+7
|
* msh: create testsuite (based on hush one)Denis Vlasenko2008-03-021-0/+3
| | | | | hush: add TODO (doesn't know ":" command)
* hush: small fixes to docs/testsuiteDenis Vlasenko2008-02-101-1/+1
|
* hush: reinstate `cmd` handling for NOMMU (with fat big warning).Denis Vlasenko2008-02-102-1/+23
| | | | | | | | | | 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)
* add expected outputMike Frysinger2007-12-251-0/+2
|
* hush: fix $ expansion in redirections, add testcase for thatDenis Vlasenko2007-11-233-0/+17
|
* hush: plug memory leakDenis Vlasenko2007-11-232-17/+40
|
* hush: fix read builtin to not read ahead past eol and to not useDenis Vlasenko2007-06-132-0/+8
| | | | | insane amounts of stack. Testsuite updated.
* hush: rework variable storage and environment handling.Denis Vlasenko2007-05-252-0/+71
| | | | | | More that -100 bytes of code + memory leak plugged. Added a testcase for it.
* hush: improve 2 testsuite testsDenis Vlasenko2007-05-244-2/+17
|
* hush: add 2 tests for correct syntax error reportingDenis Vlasenko2007-05-242-0/+2
|
* hush: make syntax error messages a bit more usefulDenis Vlasenko2007-05-232-0/+0
|
* hush: prepare testsuite for new, fixed error message formatDenis Vlasenko2007-05-231-1/+1
|