diff options
author | Dan Fandrich | 2010-08-29 04:47:03 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-08-29 04:47:03 +0200 |
commit | 140ac91fe154c9a1bb33cba38380c3cc81e1cf15 (patch) | |
tree | 99cd795e3a239c626d832f7137d25cf776164a86 /testsuite/bzcat.tests | |
parent | 91234b9be04a90f08ee4506955983338f9d3a29e (diff) | |
download | busybox-140ac91fe154c9a1bb33cba38380c3cc81e1cf15.zip busybox-140ac91fe154c9a1bb33cba38380c3cc81e1cf15.tar.gz |
testsuite: show the number of failures after a test run
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bzcat.tests')
-rwxr-xr-x | testsuite/bzcat.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/bzcat.tests b/testsuite/bzcat.tests index 78d74f2..5b4f3f4 100755 --- a/testsuite/bzcat.tests +++ b/testsuite/bzcat.tests @@ -1,5 +1,7 @@ #!/bin/sh +FAILCOUNT=0 + ext=bz2 bb="busybox " @@ -35,6 +37,7 @@ check() { echo "PASS: $1" else echo "FAIL: $1" + FAILCOUNT=$((FAILCOUNT + 1)) fi } @@ -47,3 +50,5 @@ prep; check "bzcat: dont delete src" "${bb}bzcat t2.bz2; test -f t2.bz2 && echo ) rm -rf testdir + +exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255)) |