Lines Matching full:tests
2 TESTS=$*
4 if test "$TESTS"x = x ; then
5 for i in $SRCDIR/tests/*.img.bz2
7 TESTS="$TESTS `basename $i .img.bz2`"
11 mkdir -p tests
13 for i in $TESTS
16 if test ! -f $SRCDIR/tests/$i.img.bz2 -a \
17 ! -f $SRCDIR/tests/$i.results ;
22 bunzip2 < $SRCDIR/tests/$i.img.bz2 > /tmp/test.img.$$
23 ./tst_probe /tmp/test.img.$$ > tests/$i.out
24 /bin/rm -f /tmp/test.img.$$ tests/$i.ok tests/$i.failed
25 cmp -s tests/$i.out $SRCDIR/tests/$i.results
28 touch tests/$i.ok
31 diff -c tests/$i.out $SRCDIR/tests/$i.results > tests/$i.failed
35 num_ok=`ls tests/*.ok 2>/dev/null | wc -l`
36 num_failed=`ls tests/*.failed 2>/dev/null | wc -l`
38 echo "$num_ok tests succeeded $num_failed tests failed"