From e776cded7597afc72ef1a2d6d890abba13e727e1 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sat, 30 Jan 2010 22:37:00 +0100 Subject: pbuilder-selftest: run tests after install --- pbuilder-selftest | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 pbuilder-selftest (limited to 'pbuilder-selftest') 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 -- cgit v1.2.3