diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-29 20:29:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-29 20:34:20 +0100 |
commit | 7b14ede049d467e1a6da46ef69b917645e94a6b9 (patch) | |
tree | 4f86974f37e60e308d2e4f1471e0596190af231a | |
parent | ef2386b80abfb22ccb697ddbdd4047aacc395c50 (diff) | |
download | busybox-w32-7b14ede049d467e1a6da46ef69b917645e94a6b9.tar.gz busybox-w32-7b14ede049d467e1a6da46ef69b917645e94a6b9.tar.bz2 busybox-w32-7b14ede049d467e1a6da46ef69b917645e94a6b9.zip |
ash tests: make test print test name before it is run
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | shell/ash_test/run-all | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/ash_test/run-all b/shell/ash_test/run-all index ad93e251d..354cc1fcf 100755 --- a/shell/ash_test/run-all +++ b/shell/ash_test/run-all | |||
@@ -31,8 +31,9 @@ do_test() | |||
31 | *.orig|*~) ;; | 31 | *.orig|*~) ;; |
32 | #*) echo $x ; sh $x ;; | 32 | #*) echo $x ; sh $x ;; |
33 | *) | 33 | *) |
34 | echo -n "$1/$x: " | ||
34 | sh "$x" >"$TOPDIR/$noslash-$x.fail" 2>&1 && \ | 35 | sh "$x" >"$TOPDIR/$noslash-$x.fail" 2>&1 && \ |
35 | { echo "$1/$x: ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "$1/$x: fail"; | 36 | { echo "ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "fail"; |
36 | ;; | 37 | ;; |
37 | esac | 38 | esac |
38 | done | 39 | done |
@@ -42,11 +43,12 @@ do_test() | |||
42 | test -x "$x" || continue | 43 | test -x "$x" || continue |
43 | name="${x%%.tests}" | 44 | name="${x%%.tests}" |
44 | test -f "$name.right" || continue | 45 | test -f "$name.right" || continue |
46 | echo -n "$1/$x: " | ||
45 | { | 47 | { |
46 | "$THIS_SH" "./$x" >"$name.xx" 2>&1 | 48 | "$THIS_SH" "./$x" >"$name.xx" 2>&1 |
47 | diff -u "$name.xx" "$name.right" >"$TOPDIR/$noslash-$x.fail" \ | 49 | diff -u "$name.xx" "$name.right" >"$TOPDIR/$noslash-$x.fail" \ |
48 | && rm -f "$name.xx" "$TOPDIR/$noslash-$x.fail" | 50 | && rm -f "$name.xx" "$TOPDIR/$noslash-$x.fail" |
49 | } && echo "$1/$x: ok" || echo "$1/$x: fail" | 51 | } && echo "ok" || echo "fail" |
50 | done | 52 | done |
51 | ) | 53 | ) |
52 | } | 54 | } |