chiark / gitweb /
Test suite: quilt-gbp-build-modes-sbuild: Split out
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 19 Sep 2016 01:01:09 +0000 (02:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Sep 2016 19:12:52 +0000 (20:12 +0100)
Now the other tests can run even if the sbuild chroot is not
available.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
TODO.BRANCH
debian/tests/control
tests/tests/quilt-gbp-build-modes
tests/tests/quilt-gbp-build-modes-sbuild [new file with mode: 0755]

index 9d2866e..1227483 100644 (file)
@@ -22,8 +22,6 @@ Want tests for
 
  * Want drs-quilt-gbp test.
 
- * Split quilt-gbp-build-modes into one with sbuild and one without
-
  * Add t-tstunt-parsechangelog to various tests
 
 
index 34ef4e5..a312861 100644 (file)
@@ -11,12 +11,12 @@ Tests: mirror mirror-debnewgit mirror-private
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, rsync
 
-Tests: build-modes-sbuild quilt-gbp-build-modes
+Tests: build-modes-sbuild quilt-gbp-build-modes-sbuild
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, sbuild
 Restrictions: x-dgit-schroot-build
 
-Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast inarchivecopy newtag-clone-nogit oldtag-clone-nogit push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-singlepatch rpush tag-updates test-list-uptodate trustingpolicy-replay
+Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast inarchivecopy newtag-clone-nogit oldtag-clone-nogit push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch rpush tag-updates test-list-uptodate trustingpolicy-replay
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts
 
index 8f488bb..b89c26e 100755 (executable)
@@ -3,15 +3,11 @@ set -e
 . tests/lib
 . $troot/lib-build-modes
 
-t-dependencies sbuild
-t-restrict x-dgit-schroot-build
-
 bm-gbp-example-acts                            \
        'build-source'                          \
        'build -b'                              \
        'build -S'                              \
        'gbp-build -S'                          \
        'gbp-build -b'                          \
-       'sbuild -c build --arch-all'            \
 
 echo ok.
diff --git a/tests/tests/quilt-gbp-build-modes-sbuild b/tests/tests/quilt-gbp-build-modes-sbuild
new file mode 100755 (executable)
index 0000000..8da93d3
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-build-modes
+
+t-dependencies sbuild
+t-restrict x-dgit-schroot-build
+
+bm-gbp-example-acts                            \
+       'sbuild -c build --arch-all'            \
+
+echo ok.