chiark / gitweb /
test suite: Trigger on indirect dependencies
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Jun 2018 11:00:57 +0000 (12:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 20 Jun 2018 13:31:19 +0000 (14:31 +0100)
As discussed on debian-ci.  Bug report to request documentation for
this in the autopkgtest spec is TBD.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/enumerate-tests
tests/lib-restricts
tests/tests/hint-testsuite-triggers [new file with mode: 0755]

index 595ee3f..1da95fa 100644 (file)
@@ -28,6 +28,11 @@ Tests: gitattributes
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bsdgames, man-db, git-man
 
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bsdgames, man-db, git-man
 
+Tests: hint-testsuite-triggers
+Tests-Directory: tests/tests
+Depends: gnupg, patch, diffutils
+Restrictions: hint-testsuite-triggers
+
 Tests: defdistro-mirror mirror mirror-debnewgit mirror-private
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, rsync
 Tests: defdistro-mirror mirror mirror-debnewgit mirror-private
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, rsync
index 5a4d235..0599b69 100755 (executable)
@@ -59,6 +59,7 @@ dependencies-gencontrol () {
        for dep in "$deps"; do
                case "$dep" in
                NO-DGIT) dependencies='chiark-utils-bin' ;;
        for dep in "$deps"; do
                case "$dep" in
                NO-DGIT) dependencies='chiark-utils-bin' ;;
+               NO-DEFAULT) dependencies='' ;;
                GDR) gencontrol-add-deps \
                        git-debrebase git-buildpackage faketime
                        ;;
                GDR) gencontrol-add-deps \
                        git-debrebase git-buildpackage faketime
                        ;;
index bffe13a..bb695c4 100644 (file)
@@ -20,3 +20,7 @@ t-restriction-x-dgit-unfinished () {
        echo 'unfinished test, or unfinished feature'
        return 1
 }
        echo 'unfinished test, or unfinished feature'
        return 1
 }
+
+t-restriction-hint-testsuite-triggers () {
+       :
+}
diff --git a/tests/tests/hint-testsuite-triggers b/tests/tests/hint-testsuite-triggers
new file mode 100755 (executable)
index 0000000..f35dd43
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+: "exists only to trigger ci.debian.net retests for some indirect deps"
+
+t-restrict hint-testsuite-triggers
+t-dependencies NO-DEFAULT gnupg patch diffutils
+
+t-ok