blob: 9c304aee479bbefd9a1cf21efa3b1773170abc4b [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#! /bin/sh
2
Andrew Geisslerd1e89492021-02-12 15:35:20 -06003cd tests
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
Andrew Geisslerc926e172021-05-07 16:11:35 -05005export srcdir=.
6
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007failed=0
8all=0
Andrew Geisslerd1e89492021-02-12 15:35:20 -06009for f in tst-*; do
10 "./$f" > /dev/null 2>&1
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011 case "$?" in
12 0)
13 echo "PASS: $f"
14 all=$((all + 1))
15 ;;
16 77)
17 echo "SKIP: $f"
18 ;;
19 *)
20 echo "FAIL: $f"
21 failed=$((failed + 1))
22 all=$((all + 1))
23 ;;
24 esac
25done
26
27if [ "$failed" -eq 0 ] ; then
28 echo "All $all tests passed"
29else
30 echo "$failed of $all tests failed"
31fi
Andrew Geisslerc926e172021-05-07 16:11:35 -050032unset srcdir