chiark / gitweb /
Test suite: Check that test suite list in debian/tests/control is up to date
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Jul 2015 17:26:29 +0000 (18:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Jul 2015 17:32:29 +0000 (18:32 +0100)
debian/rules
debian/tests/control
tests/tests/test-list-uptodate [new file with mode: 0755]

index ad842f3..0a5933b 100755 (executable)
@@ -38,4 +38,4 @@ debian/tests/control: tests/list-tests debian/tests/control.in
        $< gencontrol >$@.new && mv -f $@.new $@
 
 debian/tests/control: tests/lib-core tests/lib-restricts
-debian/tests/control: $(wildcard tests/tests/*[^~#])
+debian/tests/control: tests/tests $(wildcard tests/tests/*[^~#])
index bf4bc3f..9bd27a3 100644 (file)
@@ -3,7 +3,7 @@ Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, rsync
 Restrictions: x-dgit-intree-only x-dgit-git-only
 
-Tests: clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast mirror mirror-debnewgit mirror-private push-buildproductsdir push-newpackage push-nextdgit quilt rpush tag-updates trustingpolicy-replay
+Tests: clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast mirror mirror-debnewgit mirror-private push-buildproductsdir push-newpackage push-nextdgit quilt rpush tag-updates test-list-uptodate trustingpolicy-replay
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, rsync
 
diff --git a/tests/tests/test-list-uptodate b/tests/tests/test-list-uptodate
new file mode 100755 (executable)
index 0000000..a2b4c5b
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+: "just verifies internal consistency of test suite"
+
+cd $root
+$troot/list-tests gencontrol >$tmp/control-expected
+diff debian/tests/control $tmp/control-expected