Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | saved_dir=$PWD | ||||
4 | for dir in tests/* ; do | ||||
5 | cd $dir | ||||
6 | for atest in * ; do | ||||
7 | if [ \( -x $atest \) -a \( -f $atest \) ] ; then | ||||
8 | rm -rf tests.log | ||||
9 | ./$atest > tests.log 2>&1 | ||||
10 | sed -e '/: pass/ s/^/PASS: /g' \ | ||||
11 | -e '/: skip/ s/^/SKIP: /g' \ | ||||
12 | -e '/: fail/ s/^/FAIL: /g' \ | ||||
13 | -e 's/: pass//g' \ | ||||
14 | -e 's/: skip//g' \ | ||||
15 | -e 's/: fail//g' \ | ||||
16 | -e '/^--- pass:/d' tests.log | ||||
17 | fi | ||||
18 | done | ||||
19 | cd $saved_dir | ||||
20 | done | ||||
21 |