diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-04-19 22:51:33 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 11:54:06 +0100 |
commit | 8c6bf5e74ef133792ac87ccfa2a57041b7dbfe49 (patch) | |
tree | 91dbfad5613d617cb815248f739a16cb3f32252e /tests/lib | |
parent | a90a93dc51850eef80e50f95b44f3e3aa09a613c (diff) |
Test suite: start work on test of policy machinery
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -7,6 +7,7 @@ if [ "x$DGIT_TEST_INTREE" != x ]; then : ${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 fi @@ -353,6 +354,20 @@ t-dsd () { echo 'no-such-package* drs' >$dsd_dispatch/diverts } +t-policy-admin () { + ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@" +} + +t-debpolicy () { + t-dsd + + ln -sf ${DGIT_INFRA_PFX}dgit-repos-policy-debian \ + $dsd_dispatch/policy-hook + + mkdir $tmp/git + t-policy-admin create-db +} + t-chain-test () { local ct=$1 local d=${0%/*} |