aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-selftest
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-selftest')
-rwxr-xr-xpbuilder-selftest14
1 files changed, 14 insertions, 0 deletions
diff --git a/pbuilder-selftest b/pbuilder-selftest
new file mode 100755
index 0000000..348c595
--- /dev/null
+++ b/pbuilder-selftest
@@ -0,0 +1,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