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 abb2657a23bd6ee2c993422fe30819656d152f06..377c5fd1e4dd93a71bef4ff4d1fbf438e3fa65d1 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 7cf2a3a47357004ae2a6d22a66b25e2a94e26770..813a5e219e9abb0232660e571dcd6e382d9a0684 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