#! /bin/sh # oe-core's meta/recipes-devtools/quilt/quilt/test.sh with one bug fixed: the # original opens `set -e -u` and then runs each test bare before reading $?, so # the shell exits on the first failing test and the FAIL arm is unreachable. # See quilt_%.bbappend for the whole reasoning. Everything else is verbatim. set -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) if ./test/run $FILENAME; then echo "PASS: $TESTNAME" else echo "FAIL: $TESTNAME" fi done