Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/shell/hush_test
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- Location:
- branches/3.2/mindi-busybox/shell/hush_test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/shell/hush_test/hush-parsing/starquoted2.right
r2725 r3232 1 1 Should be printed 2 Would not be printed by bash 3 Would not be printed by bash 4 Would not be printed by bash 2 5 Should be printed 3 6 Empty: -
branches/3.2/mindi-busybox/shell/hush_test/hush-parsing/starquoted2.tests
r2725 r3232 9 9 # treating "" as "this word cannot be expanded to nothing, 10 10 # but must be at least null string". Now it can be expanded to nothing. 11 for a in "$@"""; do echo Should not be printed; done12 for a in """$@"; do echo Should not be printed; done13 for a in """$@"''"$@"''; do echo Should not be printed; done11 for a in "$@"""; do echo Would not be printed by bash; done 12 for a in """$@"; do echo Would not be printed by bash; done 13 for a in """$@"''"$@"''; do echo Would not be printed by bash; done 14 14 for a in ""; do echo Should be printed; done 15 15 -
branches/3.2/mindi-busybox/shell/hush_test/run-all
r2725 r3232 49 49 #*) echo $x ; sh $x ;; 50 50 *) 51 echo -n "$1/$x:" 51 52 sh "$x" >"../$1-$x.fail" 2>&1 && \ 52 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";53 { { echo " ok"; rm "../$1-$x.fail"; } || echo " fail"; } 53 54 ;; 54 55 esac … … 61 62 test -f "$name.right" || continue 62 63 # echo Running test: "$x" 64 echo -n "$1/$x:" 63 65 ( 64 66 "$THIS_SH" "./$x" >"$name.xx" 2>&1 … … 71 73 ) 72 74 case $? in 73 0) echo " $1/$x:ok";;74 77) echo " $1/$x:skip (feature disabled)";;75 *) echo " $1/$x:fail"; tret=1;;75 0) echo " ok";; 76 77) echo " skip (feature disabled)";; 77 *) echo " fail"; tret=1;; 76 78 esac 77 79 done
Note:
See TracChangeset
for help on using the changeset viewer.