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 c3d636781ae0b33e7135e9a52a7f328c3a1d2ec2..2a233293ec2565accb45f171663e86625ea327b6 100644 (file)
@@ -41,6 +41,8 @@ bm-prep () {
 bm-guess-e-source-e-targets () {
        local some_act=$1
        case "$some_act" in
 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'    ;;
        *" -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 d61075ab285c72139a9ff83dd8f502dd22ff3b11..18ead358e763f1a7b17667a3c5aff1d0c150a896 100755 (executable)
@@ -20,8 +20,6 @@ for act in                                    \
 
        case $act in
        build-source)
 
        case $act in
        build-source)
-               e_source=true
-               e_targets=''
                cleanmodes="$cleanmodes_all"
                ;;
        *)
                cleanmodes="$cleanmodes_all"
                ;;
        *)