diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-03 23:56:50 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-16 16:47:48 +0100 |
commit | 9556b9d2fde1f819cf6dbd16746cd82fd6ad2026 (patch) | |
tree | 52e696637ff97c199fc4149867fc4b3d2ba8ed2f | |
parent | 0f74d9d90bbb3284dbbb3cca306607667aa9e94c (diff) |
Test suite: build-modes: Move `build-source' knowledge to lib
Teach bm-guess-e-source-e-targets about dgit build-source, so this
knowledge can be reused.
-rw-r--r-- | tests/lib-build-modes | 2 | ||||
-rwxr-xr-x | tests/tests/build-modes | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib-build-modes b/tests/lib-build-modes index c3d6367..2a23329 100644 --- a/tests/lib-build-modes +++ b/tests/lib-build-modes @@ -41,6 +41,8 @@ bm-prep () { bm-guess-e-source-e-targets () { local some_act=$1 case "$some_act" in + build-source) + e_source=true; e_targets='' ;; *" -b") e_source=false; e_targets='build binary' ;; *" -B") e_source=false; e_targets='build-arch binary-arch' ;; *" -A") e_source=false; e_targets='build-indep binary-indep' ;; diff --git a/tests/tests/build-modes b/tests/tests/build-modes index d61075a..18ead35 100755 --- a/tests/tests/build-modes +++ b/tests/tests/build-modes @@ -20,8 +20,6 @@ for act in \ case $act in build-source) - e_source=true - e_targets='' cleanmodes="$cleanmodes_all" ;; *) |