blob: 7dac8f44231194aa55dc97bc56136c89137ee39a [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001#! /bin/sh
2
3set -e -u
4
5export LANG=C
6export LC_ALL=C
7export P=patches/
8export _P=../patches/
9export QUILTRC=$(pwd)/test/test.quiltrc
10export QUILT_PC=.pc
11export QUILT_DIR=/usr/share/quilt/
12
13# Specify on the commandline, else runs all of the tests
14TESTS=${@:-test/*.test}
15
16for 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
24done