chiark / gitweb /
Tests: Exercise policy periodic hook
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 May 2015 10:31:58 +0000 (11:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:12 +0000 (11:54 +0100)
tests/lib
tests/tests/debpolicy-newreject

index abb2657..377c5fd 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -368,6 +368,11 @@ t-debpolicy () {
        t-policy-admin create-db
 }
 
+t-policy-periodic () {
+       ${DGIT_REPOS_SERVER_TEST-dgit-repos-server} \
+               test-dummy $drs_dispatch '' --cron
+}
+
 t-chain-test () {
        local ct=$1
        local d=${0%/*}
index 7cf2a3a..813a5e2 100755 (executable)
@@ -19,4 +19,10 @@ t-dgit build
 t-expect-fail 'forbidden for testing' \
 t-dgit push --new
 
+git reset --hard HEAD~
+t-dgit build
+t-dgit push --new
+
+t-policy-periodic
+
 echo xxx up to here