chiark / gitweb /
Test suite: Provide test for nonexistent --always-split-source-build
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Nov 2015 17:28:10 +0000 (17:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 15:47:31 +0000 (16:47 +0100)
We are going to introduce this option soon.  It is not supposed to
actually have very much overall effect, although it will replumb the
way dgit goes about making the source package.

So the tests are just the same as the normal tests only with the
additional option.

debian/tests/control
tests/lib-build-modes
tests/tests/build-modes-asplit [new file with mode: 0755]
tests/tests/build-modes-gbp-asplit [new file with mode: 0755]

index 5e3dce10340f3cd5480f929b45ff55d508723f42..60c6e094e0ae776ba86cb3f1de7319b06a21978a 100644 (file)
@@ -16,7 +16,7 @@ Tests: mirror mirror-debnewgit mirror-private
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, rsync
 
-Tests: build-modes 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 push-buildproductsdir push-newpackage push-nextdgit quilt 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 distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast push-buildproductsdir push-newpackage push-nextdgit quilt quilt-singlepatch rpush tag-updates test-list-uptodate trustingpolicy-replay
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts
 
index a0b47222362ca1c443e875d3fe4ade58d40a44b9..8fa263c34448176d43c53ab424529951253e9c13 100644 (file)
@@ -97,7 +97,7 @@ bm-compute-expected () {
 }
 
 bm-run-one () {
-       local args="--clean=$cleanmode $real_act"
+       local args="$DGIT_TEST_BM_BASEARGS --clean=$cleanmode $real_act"
 
        bmid="$act,$cleanmode,$branch"
        bmid=${bmid// /_}
@@ -158,3 +158,10 @@ bm-act-iterate () {
        done
        : bm-act-iterate done.
 }
+
+bm-alwayssplit () {
+       local t=${0##*/}
+       DGIT_TEST_BM_BASEARGS+=' --always-split-source-build'
+       export DGIT_TEST_BM_BASEARGS
+       t-chain-test "${t%%-asplit}"
+}
diff --git a/tests/tests/build-modes-asplit b/tests/tests/build-modes-asplit
new file mode 100755 (executable)
index 0000000..fa3bf8a
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-build-modes
+bm-alwayssplit
diff --git a/tests/tests/build-modes-gbp-asplit b/tests/tests/build-modes-gbp-asplit
new file mode 100755 (executable)
index 0000000..fa3bf8a
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-build-modes
+bm-alwayssplit