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_pbuilder-satisfydepends-classic | |
parent | b4b19c4010644fd3734c8ed6607c92e539730d54 (diff) | |
download | pbuilder-e776cded7597afc72ef1a2d6d890abba13e727e1.tar pbuilder-e776cded7597afc72ef1a2d6d890abba13e727e1.tar.gz |
pbuilder-selftest: run tests after install
Diffstat (limited to 'test_pbuilder-satisfydepends-classic')
-rwxr-xr-x | test_pbuilder-satisfydepends-classic | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/test_pbuilder-satisfydepends-classic b/test_pbuilder-satisfydepends-classic index c97c3d1..c70c778 100755 --- a/test_pbuilder-satisfydepends-classic +++ b/test_pbuilder-satisfydepends-classic @@ -3,7 +3,18 @@ # (. ./pbuilder-satisfydepends-"$flavour") #done -. ./testlib.sh +if [ -n "$PBUILDER_CHECKOUT" ]; then + . "$PBUILDER_CHECKOUT/testlib.sh" + + PBUILDER_SATISFYDEPENDS_CLASSIC="$PBUILDER_CHECKOUT/pbuilder-satisfydepends-classic" +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" + + PBUILDER_SATISFYDEPENDS_CLASSIC="$PBUILDER_TEST_PKGLIBDIR/pbuilder-satisfydepends-classic" +fi DEBIAN_CONTROL="" @@ -19,9 +30,16 @@ trap cleanup sigpipe sighup exit # setup a fake installed environment testlib_setup_env +if [ -n "$PBUILDER_CHECKOUT" ]; then + PBUILDER_SATISFYDEPENDS_CLASSIC="$PBUILDER_CHECKOUT/pbuilder-satisfydepends-classic" +else + export PBUILDER_PKGLIBDIR="${PBUILDER_PKGLIBDIR:-$PBUILDER_ROOT/usr/lib/pbuilder}" + PBUILDER_SATISFYDEPENDS_CLASSIC="$PBUILDER_PKGLIBDIR/pbuilder-satisfydepends-classic" +fi + set -- --echo --control "$DEBIAN_CONTROL" # this is just to source the functions -. ./pbuilder-satisfydepends-classic >/dev/null 2>&1 || true +. "$PBUILDER_SATISFYDEPENDS_CLASSIC" >/dev/null 2>&1 || true DEBIAN_CONTROL="`mktemp -t`" cat >"$DEBIAN_CONTROL" <<EOF |