chiark / gitweb /
infra/dgit-ssh-dispatch: New production infra script
[dgit.git] / tests / lib
index 529f55d95a77cc2b11663ef940f1794bb63fc23b..0073df4123e56ea48014c11e73be87184c42b057 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -6,7 +6,8 @@ set -x
 if [ "x$DGIT_TEST_INTREE" != x ]; then
        : ${DGIT_TEST:=$DGIT_TEST_INTREE/dgit}
        : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/dgit-repos-server}
-       export DGIT_TEST DGIT_REPOS_SERVER_TEST
+       : ${DGIT_SSH_DISPATCH_TEST:=$DGIT_TEST_INTREE/infra/dgit-ssh-dispatch}
+       export DGIT_TEST DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST
 fi
 
 root=`pwd`
@@ -262,12 +263,17 @@ t-drs () {
        cp $root/tests/suites $tmp/.
 }
 
-t-alt-test () {
+t-chain-test () {
+       local ct=$1
        local d=${0%/*}
-       local t=${0##*/}
-       t-${t%%-*}
        cd $root
        export DGIT_TEST_TESTNAME="$testname"
        export ADTTMP=$tmp
-       exec "$d/${t#*-}"
+       exec "$d/$ct"
+}      
+
+t-alt-test () {
+       local t=${0##*/}
+       t-${t%%-*}
+       t-chain-test "${t#*-}"
 }