diff options
Diffstat (limited to 'meta/recipes-devtools/quilt/quilt/test.sh')
-rwxr-xr-x | meta/recipes-devtools/quilt/quilt/test.sh | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/meta/recipes-devtools/quilt/quilt/test.sh b/meta/recipes-devtools/quilt/quilt/test.sh index 6563e4a2fb..7dac8f4423 100755 --- a/meta/recipes-devtools/quilt/quilt/test.sh +++ b/meta/recipes-devtools/quilt/quilt/test.sh | |||
@@ -1 +1,24 @@ | |||
1 | for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? -eq 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done | 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 | ||