aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-selftest
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-30 22:37:00 +0100
committerLoïc Minier <lool@dooz.org>2010-01-30 22:37:00 +0100
commite776cded7597afc72ef1a2d6d890abba13e727e1 (patch)
treeeb90e842cf4409c3d0a594dba74617f685b57691 /pbuilder-selftest
parentb4b19c4010644fd3734c8ed6607c92e539730d54 (diff)
downloadpbuilder-e776cded7597afc72ef1a2d6d890abba13e727e1.tar
pbuilder-e776cded7597afc72ef1a2d6d890abba13e727e1.tar.gz
pbuilder-selftest: run tests after install
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