aboutsummaryrefslogtreecommitdiff
path: root/test_pbuilder-satisfydepends-classic
diff options
context:
space:
mode:
Diffstat (limited to 'test_pbuilder-satisfydepends-classic')
-rwxr-xr-xtest_pbuilder-satisfydepends-classic22
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