diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-06 12:32:47 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-06 15:58:58 +0100 |
commit | 417528ec02cb93d3bc7f507572d2096585ee57b2 (patch) | |
tree | 2760fbfb47736ad9c1284033d8c4c1098b372a64 /tests | |
parent | 47eda057287ddbf374a71a932f80e830df537d94 (diff) |
test suite: Break out t-chain-test-somehow
This will be used for when we want to source tests/lib from
some program run by a test.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1213,13 +1213,17 @@ t-dependencies () { : "Hopefully installed: $*" } +t-chain-test-somehow () { + export DGIT_TEST_TESTNAME="$testname" + export DGIT_TEST_TMPBASE="$tmpbase" + export ADTTMP=$tmp +} + t-chain-test () { + t-chain-test-somehow local ct=$1 local d=${0%/*} cd $root - export DGIT_TEST_TESTNAME="$testname" - export DGIT_TEST_TMPBASE="$tmpbase" - export ADTTMP=$tmp exec "$d/$ct" } |