summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-26 13:33:57 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-26 13:34:31 +0100
commite032c0f964491a71e8918b79ad2a774993074085 (patch)
treebec38f9f1daba4ccff2c09fa9cb4d1850df2cf9c /tests
parenta14c832fb36fa6ccccc8d8a02507983bec9adb52 (diff)
test suite: Test dgit build --build=
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/build-modes-long36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/tests/build-modes-long b/tests/tests/build-modes-long
new file mode 100755
index 0000000..20a2ce3
--- /dev/null
+++ b/tests/tests/build-modes-long
@@ -0,0 +1,36 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-build-modes
+
+bm-prep
+
+for build in \
+ 'source' \
+ 'any' \
+ 'all' \
+ 'binary' \
+ 'full' \
+ 'source,any' \
+ 'all,any' \
+; do
+ act="build --build=$build"
+
+ case "$build" in
+ *source*|*full*) e_source=true ;;
+ *) e_source=false ;;
+ esac
+
+ case "$build" in
+ *binary*|*any*all*|*all*any*)
+ e_targets='build binary' ;;
+ *any*) e_targets='build-arch binary-arch' ;;
+ *all*) e_targets='build-indep binary-indep' ;;
+ esac
+
+ cleanmodes="$cleanmodes_default"
+ real_act="$act"
+ bm-act-iterate
+done
+
+t-ok