chiark / gitweb /
Test suite: quilt-gbp-build-modes: New test, which does not pass yet
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 23:02:33 +0000 (00:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Sep 2016 18:41:35 +0000 (19:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/tests/quilt-gbp-build-modes [new file with mode: 0755]

index 899bbb1..e1c48c6 100644 (file)
@@ -16,6 +16,11 @@ Tests: mirror mirror-debnewgit mirror-private
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, rsync
 
+Tests: quilt-gbp-build-modes
+Tests-Directory: tests/tests
+Depends: dgit, dgit-infrastructure, devscripts, sbuild
+Restrictions: x-dgit-unfinished x-dgit-schroot-build
+
 Tests: build-modes build-modes-asplit build-modes-gbp-asplit 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 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-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts
diff --git a/tests/tests/quilt-gbp-build-modes b/tests/tests/quilt-gbp-build-modes
new file mode 100755 (executable)
index 0000000..4e256fe
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-build-modes
+
+t-dependencies sbuild
+t-restrict x-dgit-unfinished
+t-restrict x-dgit-schroot-build
+
+t-gbp-example-prep
+
+git checkout -b for-build-modes patch-queue/quilt-tip-2
+# build-modes cannot cope with branches containing /
+
+bm-prep-ownpackage-branches for-build-modes
+
+cleanmodes=git
+
+for act in                                     \
+       'build-source'                          \
+       'build -b'                              \
+       'build -S'                              \
+       'gbp-build -S'                          \
+       'gbp-build -b'                          \
+       'sbuild -c build --no-arch-all'         \
+; do
+       bm-guess-e-source-e-targets "$act"
+       real_act="--quilt=gbp $act"
+       case "$act" in
+       sbuild*)    bm_quirk_after_act=bm-quirk-sbuild-after-act ;;
+       *)          bm_quirk_after_act='' ;;
+       esac
+       bm-act-iterate
+done
+
+echo ok.