Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | |
| 3 | set -e -u |
| 4 | |
| 5 | export LANG=C |
| 6 | export LC_ALL=C |
| 7 | export P=patches/ |
| 8 | export _P=../patches/ |
| 9 | export QUILTRC=$(pwd)/test/test.quiltrc |
| 10 | export QUILT_PC=.pc |
| 11 | export QUILT_DIR=/usr/share/quilt/ |
| 12 | |
| 13 | # Specify on the commandline, else runs all of the tests |
| 14 | TESTS=${@:-test/*.test} |
| 15 | |
| 16 | for FILENAME in $TESTS; do |
| 17 | TESTNAME=$(basename $FILENAME .test) |
| 18 | ./test/run $FILENAME |
| 19 | if [ $? -eq 0 ]; |
| 20 | then echo PASS: $TESTNAME |
| 21 | else |
| 22 | echo FAIL: $TESTNAME |
| 23 | fi |
| 24 | done |