aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bzcat.tests
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-08-29 04:47:03 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-29 04:47:03 +0200
commit140ac91fe154c9a1bb33cba38380c3cc81e1cf15 (patch)
tree99cd795e3a239c626d832f7137d25cf776164a86 /testsuite/bzcat.tests
parent91234b9be04a90f08ee4506955983338f9d3a29e (diff)
downloadbusybox-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-xtestsuite/bzcat.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/bzcat.tests b/testsuite/bzcat.tests
index 78d74f229..5b4f3f4b3 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))