Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #! /bin/sh |
2 | |||||
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 3 | cd tests |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 5 | export srcdir=. |
6 | |||||
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | failed=0 |
8 | all=0 | ||||
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 9 | for f in tst-*; do |
10 | "./$f" > /dev/null 2>&1 | ||||
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | 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 | ||||
25 | done | ||||
26 | |||||
27 | if [ "$failed" -eq 0 ] ; then | ||||
28 | echo "All $all tests passed" | ||||
29 | else | ||||
30 | echo "$failed of $all tests failed" | ||||
31 | fi | ||||
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 32 | unset srcdir |