aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* hush: heredoc support, based on patch by Mike Frysinger (vapier AT gentoo.org)Denis Vlasenko2009-04-073-11/+25
| | | | | | | | | | | | | | | | some TODOs are to be attacked later function old new delta parse_stream 1461 1866 +405 parse_redirect - 265 +265 setup_heredoc - 116 +116 setup_redirects 151 196 +45 builtin_exit 49 47 -2 redirect_opt_num 61 55 -6 setup_redirect 212 - -212 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/2 up/down: 831/-220) Total: 611 bytes
* hush: fix "if false; then...fi" exitcode;Denis Vlasenko2009-04-062-0/+3
| | | | | trim "keyword"-less hush by 10 bytes
* make hush-misc/*.tests executableDenis Vlasenko2009-04-064-0/+0
|
* hush: fix a bunch of obscure while/until/continue bugsDenis Vlasenko2009-04-069-1/+28
| | | | | | | | | | 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
* *.tests should be executableDenis Vlasenko2009-04-061-0/+0
|
* move hush-parsing/and-or.tests to hush-misc/*Denis Vlasenko2009-04-062-0/+0
| | | | | (which probably needs to be renamed to hush-execution...)
* add some brute force logic testsMike Frysinger2009-04-062-0/+52
|
* add tests for basic fd open/close/dupeMike Frysinger2009-04-062-0/+36
|
* fix redir1 tests -- usleep isnt standard in $PATHMike Frysinger2009-04-061-1/+3
|
* fixing mode on hush-leak/leak_argv1.testsDenis Vlasenko2009-04-051-0/+117
|
* fixing mode on hush-leak/leak_argv1.testsDenis Vlasenko2009-04-051-117/+0
|
* hush: fix passing of $n on NOMMUDenis Vlasenko2009-04-052-0/+20
|
* hush: fix "var=val >file" not creating fileDenis Vlasenko2009-04-042-0/+42
| | | | | | | | | function old new delta static.null_ptr - 4 +4 run_list 2018 2020 +2 handle_dollar 667 626 -41 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 6/-41) Total: -35 bytes
* hush: finally make `cmd` safe on NOMMUDenis Vlasenko2009-04-031-0/+2
| | | | | | | | | | function old new delta generate_stream_from_string - 157 +157 expand_variables 2050 2003 -47 generate_stream_from_list 139 - -139 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/1 up/down: 157/-186) Total: -29 bytes
* hush: improve parse_stream: does not require parsing context struct;Denis Vlasenko2009-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | cleans up on syntax errors (we used to leak memory in this case); much simplified interface to the rest of hush. function old new delta parse_stream 1204 1447 +243 done_word 658 669 +11 static_get 22 28 +6 builtin_source 84 89 +5 parse_and_run_file 27 30 +3 parse_and_run_string 31 27 -4 builtin_eval 55 50 -5 hush_main 991 985 -6 free_pipe_list 39 31 -8 free_pipe 210 189 -21 expand_variables 2242 2199 -43 parse_and_run_stream 289 153 -136 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/7 up/down: 268/-223) Total: 45 bytes
* hush: fix bug with local environment vars in pipes; simplify parse_stream()Denis Vlasenko2009-04-032-0/+13
| | | | | | | | function old new delta parse_stream 1238 1218 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20) Total: -20 bytes
* trim trailing slashes from specified subdir so we output to the right placeMike Frysinger2009-04-021-0/+1
|
* hush: rename ->o_quote to ->o_escapeDenis Vlasenko2009-04-024-0/+537
| | | | | hush_test/hush-arith/*: new tests for arithmetic evaluation
* hust_test/*: use "$THIS_SH" instead of hushDenis Vlasenko2009-03-317-52/+52
|
* implement `unset` semantics as required by POSIXMike Frysinger2009-03-302-0/+55
|
* enable trap testsMike Frysinger2009-03-294-0/+0
|
* add test cases for `trap` ... but disabled for now until trap support is ↵Mike Frysinger2009-03-298-0/+72
| | | | committed
* test for invalid named variablesMike Frysinger2009-03-282-0/+7
|
* remove ((expr)) bash'ismDenis Vlasenko2009-03-281-1/+1
|
* add hush tests for parameter expansionMike Frysinger2009-03-2810-0/+210
|
* 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
|