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>
This commit is contained in:
Dan Fandrich
2010-08-29 04:47:03 +02:00
committed by Denys Vlasenko
parent 91234b9be0
commit 140ac91fe1
4 changed files with 21 additions and 2 deletions

View File

@@ -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))