chiark / gitweb /
Test suite: build-modes: Move `build-source' knowledge to lib
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 22:56:50 +0000 (23:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 15:47:48 +0000 (16:47 +0100)
Teach bm-guess-e-source-e-targets about dgit build-source, so this
knowledge can be reused.

tests/lib-build-modes
tests/tests/build-modes

index c3d6367..2a23329 100644 (file)
@@ -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'    ;;
index d61075a..18ead35 100755 (executable)
@@ -20,8 +20,6 @@ for act in                                    \
 
        case $act in
        build-source)
-               e_source=true
-               e_targets=''
                cleanmodes="$cleanmodes_all"
                ;;
        *)