diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-29 22:29:05 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-29 22:34:20 +0300 |
commit | 7b14ede049d467e1a6da46ef69b917645e94a6b9 (patch) | |
tree | 4f86974f37e60e308d2e4f1471e0596190af231a /shell | |
parent | ef2386b80abfb22ccb697ddbdd4047aacc395c50 (diff) |
ash tests: make test print test name before it is run
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-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() *.orig|*~) ;; #*) echo $x ; sh $x ;; *) + echo -n "$1/$x: " sh "$x" >"$TOPDIR/$noslash-$x.fail" 2>&1 && \ - { echo "$1/$x: ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "$1/$x: fail"; + { echo "ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "fail"; ;; esac done @@ -42,11 +43,12 @@ do_test() test -x "$x" || continue name="${x%%.tests}" test -f "$name.right" || continue + echo -n "$1/$x: " { "$THIS_SH" "./$x" >"$name.xx" 2>&1 diff -u "$name.xx" "$name.right" >"$TOPDIR/$noslash-$x.fail" \ && rm -f "$name.xx" "$TOPDIR/$noslash-$x.fail" - } && echo "$1/$x: ok" || echo "$1/$x: fail" + } && echo "ok" || echo "fail" done ) } |