diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-30 22:37:00 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-30 22:37:00 +0100 |
commit | e776cded7597afc72ef1a2d6d890abba13e727e1 (patch) | |
tree | eb90e842cf4409c3d0a594dba74617f685b57691 /test_testlib.sh | |
parent | b4b19c4010644fd3734c8ed6607c92e539730d54 (diff) | |
download | pbuilder-e776cded7597afc72ef1a2d6d890abba13e727e1.tar pbuilder-e776cded7597afc72ef1a2d6d890abba13e727e1.tar.gz |
pbuilder-selftest: run tests after install
Diffstat (limited to 'test_testlib.sh')
-rwxr-xr-x | test_testlib.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test_testlib.sh b/test_testlib.sh index 7642aaa..be20c58 100755 --- a/test_testlib.sh +++ b/test_testlib.sh @@ -1,7 +1,14 @@ #!/bin/bash # testsuite for testlib -. ./testlib.sh +if [ -n "$PBUILDER_CHECKOUT" ]; then + . "$PBUILDER_CHECKOUT/testlib.sh" +else + # these currently don't need to be exported + PBUILDER_TEST_ROOT="${PBUILDER_ROOT:-}" + PBUILDER_TEST_PKGLIBDIR="${PBUILDER_PKGLIBDIR:-$PBUILDER_ROOT/usr/lib/pbuilder}" + . "$PBUILDER_TEST_PKGLIBDIR/testlib.sh" +fi test_success() { exit 0 |