summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/quilt/quilt/test.sh
blob: 7dac8f44231194aa55dc97bc56136c89137ee39a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh

set -e -u

export LANG=C
export LC_ALL=C
export P=patches/
export _P=../patches/
export QUILTRC=$(pwd)/test/test.quiltrc
export QUILT_PC=.pc
export QUILT_DIR=/usr/share/quilt/

# Specify on the commandline, else runs all of the tests
TESTS=${@:-test/*.test}

for FILENAME in $TESTS; do
    TESTNAME=$(basename $FILENAME .test)
    ./test/run $FILENAME
    if [ $? -eq 0 ];
        then echo PASS: $TESTNAME
    else
        echo FAIL: $TESTNAME
    fi
done