]>
Commit | Line | Data |
---|---|---|
c005fb28 MW |
1 | # Run the test suites |
2 | # Running them one at a time gives more readable results and shows up errors | |
3 | # in the suite names. | |
4 | set -e | |
5 | cd tests | |
6 | ||
7 | case `uname -sm` in | |
8 | CYGWIN*|MINGW32*) PATH=../lib:$PATH ;; | |
9 | Darwin*) DYLD_LIBRARY_PATH=../lib:$DYLD_LIBRARY_PATH ;; | |
10 | *) LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ;; | |
11 | esac | |
12 | ||
13 | test -x test_gui && TEST_GUI=./test_gui | |
14 | ERR=0 | |
15 | ||
16 | for prog in ./test $TEST_GUI; do | |
17 | if [ -x $prog ]; then | |
18 | SUITES=`$prog -l | grep '^ [^ ]'` | |
19 | for SUITE in $SUITES; do | |
20 | echo | |
21 | echo $SUITE | |
22 | echo $SUITE | sed 's/./-/g' | |
23 | $prog $SUITE || ERR=1 | |
24 | echo | |
25 | done | |
26 | fi | |
27 | done | |
28 | ||
29 | exit $ERR |