diff options
Diffstat (limited to 'shell/hush_test/run-all')
-rwxr-xr-x | shell/hush_test/run-all | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all index 256f152dc..64a7abc47 100755 --- a/shell/hush_test/run-all +++ b/shell/hush_test/run-all | |||
@@ -48,8 +48,9 @@ do_test() | |||
48 | *.orig|*~) ;; | 48 | *.orig|*~) ;; |
49 | #*) echo $x ; sh $x ;; | 49 | #*) echo $x ; sh $x ;; |
50 | *) | 50 | *) |
51 | echo -n "$1/$x:" | ||
51 | sh "$x" >"../$1-$x.fail" 2>&1 && \ | 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 | esac | 55 | esac |
55 | done | 56 | done |
@@ -60,6 +61,7 @@ do_test() | |||
60 | name="${x%%.tests}" | 61 | name="${x%%.tests}" |
61 | test -f "$name.right" || continue | 62 | test -f "$name.right" || continue |
62 | # echo Running test: "$x" | 63 | # echo Running test: "$x" |
64 | echo -n "$1/$x:" | ||
63 | ( | 65 | ( |
64 | "$THIS_SH" "./$x" >"$name.xx" 2>&1 | 66 | "$THIS_SH" "./$x" >"$name.xx" 2>&1 |
65 | # filter C library differences | 67 | # filter C library differences |
@@ -70,9 +72,9 @@ do_test() | |||
70 | diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail" | 72 | diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail" |
71 | ) | 73 | ) |
72 | case $? in | 74 | case $? in |
73 | 0) echo "$1/$x: ok";; | 75 | 0) echo " ok";; |
74 | 77) echo "$1/$x: skip (feature disabled)";; | 76 | 77) echo " skip (feature disabled)";; |
75 | *) echo "$1/$x: fail"; tret=1;; | 77 | *) echo " fail"; tret=1;; |
76 | esac | 78 | esac |
77 | done | 79 | done |
78 | exit ${tret} | 80 | exit ${tret} |