chiark / gitweb /
adns_errabbrev; regress/checkall prints summary list of failed tests;
[adns.git] / regress / checkall
1 #!/bin/sh
2
3 failed=''
4
5 for f in case-*.sys
6 do
7         case="`echo \"$f\" | sed -e 's/^case-//; s/\.sys$//'`"
8         if ./r1test $case
9         then
10                 :
11         else
12                 echo
13                 failed="$failed $case"
14                 echo
15         fi
16 done
17
18 if [ "x$failed" = x ]
19 then
20         echo "
21 all tests passed."
22         exit 0
23 fi
24
25 echo >&2 "
26 AT LEAST ONE TEST FAILED
27 $failed
28 "
29
30 exit 1