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/bunzip2.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/bunzip2.tests')
-rwxr-xr-x | testsuite/bunzip2.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/bunzip2.tests b/testsuite/bunzip2.tests index 734acbb75..827aee867 100755 --- a/testsuite/bunzip2.tests +++ b/testsuite/bunzip2.tests | |||
@@ -1,6 +1,8 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # Used by both gunzip and bunzip2 tests | 2 | # Used by both gunzip and bunzip2 tests |
3 | 3 | ||
4 | FAILCOUNT=0 | ||
5 | |||
4 | if test "${0##*/}" = "gunzip.tests"; then | 6 | if test "${0##*/}" = "gunzip.tests"; then |
5 | unpack=gunzip | 7 | unpack=gunzip |
6 | ext=gz | 8 | ext=gz |
@@ -473,6 +475,7 @@ check() { | |||
473 | echo "PASS: $1" | 475 | echo "PASS: $1" |
474 | else | 476 | else |
475 | echo "FAIL: $1" | 477 | echo "FAIL: $1" |
478 | FAILCOUNT=$((FAILCOUNT + 1)) | ||
476 | fi | 479 | fi |
477 | } | 480 | } |
478 | 481 | ||
@@ -520,5 +523,8 @@ if test "${0##*/}" = "bunzip2.tests"; then | |||
520 | echo "PASS: $unpack: test bz2 file" | 523 | echo "PASS: $unpack: test bz2 file" |
521 | else | 524 | else |
522 | echo "FAIL: $unpack: test bz2 file" | 525 | echo "FAIL: $unpack: test bz2 file" |
526 | FAILCOUNT=$((FAILCOUNT + 1)) | ||
523 | fi | 527 | fi |
524 | fi | 528 | fi |
529 | |||
530 | exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255)) | ||