aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-selftest
blob: 348c5952b637ac46647b597909e5c45a360daa06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

if [ -n "$PBUILDER_CHECKOUT" ]; then
    PBUILDER_TESTS_DIR="$PBUILDER_CHECKOUT"
else
    PBUILDER_PKGLIBDIR="${PBUILDER_PKGLIBDIR:-$PBUILDER_ROOT/usr/lib/pbuilder}"
    PBUILDER_TESTS_DIR="$PBUILDER_PKGLIBDIR"
fi

for t in "$PBUILDER_TESTS_DIR"/test_*; do
    "$t"
done