summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-03 11:31:58 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 11:54:12 +0100
commit5e5ac359fd22d5e35916471468ab7f56fec9fc82 (patch)
tree6204465ae7df94c22d6b7f3dd2a54c7f501b914f
parentc4e6f46a26de88f746cbbda6af94821242d71bf2 (diff)
Tests: Exercise policy periodic hook
-rw-r--r--tests/lib5
-rwxr-xr-xtests/tests/debpolicy-newreject6
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index abb2657..377c5fd 100644
--- 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%/*}
diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject
index 7cf2a3a..813a5e2 100755
--- a/tests/tests/debpolicy-newreject
+++ b/tests/tests/debpolicy-newreject
@@ -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