From 6913c854ca0f3eb901c39c74b74d7f0344318f72 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 3 May 2015 12:02:09 +0100 Subject: Tests: break out some things into lib-core (nfc) --- tests/lib-core | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/lib-core (limited to 'tests/lib-core') diff --git a/tests/lib-core b/tests/lib-core new file mode 100644 index 0000000..98ae85f --- /dev/null +++ b/tests/lib-core @@ -0,0 +1,16 @@ +# + +fail () { + echo >&2 "failed: $*" + exit 1 +} + +t-set-intree () { + if [ "x$DGIT_TEST_INTREE" = x ]; then return; fi + : ${DGIT_TEST:=$DGIT_TEST_INTREE/dgit} + : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/infra/dgit-repos-server} + : ${DGIT_SSH_DISPATCH_TEST:=$DGIT_TEST_INTREE/infra/dgit-ssh-dispatch} + : ${DGIT_INFRA_PFX:=$DGIT_TEST_INTREE${DGIT_TEST_INTREE:+/infra/}} + export DGIT_TEST DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST + export PERLLIB="$DGIT_TEST_INTREE${PERLLIB:+:}${PERLLIB}" +} -- cgit v1.2.3