diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2010-08-29 04:47:03 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-29 04:47:03 +0200 |
commit | 140ac91fe154c9a1bb33cba38380c3cc81e1cf15 (patch) | |
tree | 99cd795e3a239c626d832f7137d25cf776164a86 /testsuite/bzcat.tests | |
parent | 91234b9be04a90f08ee4506955983338f9d3a29e (diff) | |
download | busybox-w32-140ac91fe154c9a1bb33cba38380c3cc81e1cf15.tar.gz busybox-w32-140ac91fe154c9a1bb33cba38380c3cc81e1cf15.tar.bz2 busybox-w32-140ac91fe154c9a1bb33cba38380c3cc81e1cf15.zip |
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 78d74f229..5b4f3f4b3 100755 --- a/testsuite/bzcat.tests +++ b/testsuite/bzcat.tests | |||
@@ -1,5 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | FAILCOUNT=0 | ||
4 | |||
3 | ext=bz2 | 5 | ext=bz2 |
4 | 6 | ||
5 | bb="busybox " | 7 | bb="busybox " |
@@ -35,6 +37,7 @@ check() { | |||
35 | echo "PASS: $1" | 37 | echo "PASS: $1" |
36 | else | 38 | else |
37 | echo "FAIL: $1" | 39 | echo "FAIL: $1" |
40 | FAILCOUNT=$((FAILCOUNT + 1)) | ||
38 | fi | 41 | fi |
39 | } | 42 | } |
40 | 43 | ||
@@ -47,3 +50,5 @@ prep; check "bzcat: dont delete src" "${bb}bzcat t2.bz2; test -f t2.bz2 && echo | |||
47 | 50 | ||
48 | ) | 51 | ) |
49 | rm -rf testdir | 52 | rm -rf testdir |
53 | |||
54 | exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255)) | ||