projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
testsuite: show the number of failures after a test run
[oweals/busybox.git]
/
testsuite
/
bzcat.tests
diff --git
a/testsuite/bzcat.tests
b/testsuite/bzcat.tests
index 78d74f22995a218ef1829b2ebdc621d7dce3b765..5b4f3f4b317c2644f658c94823e2ccb89e3cd4e6 100755
(executable)
--- 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))