chiark / gitweb /
Test suite: build-modes: Move sbuild knowledge to lib
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 22:57:50 +0000 (23:57 +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 sbuild, so this knowledge can
be reused.

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

index 2a23329..93997c6 100644 (file)
@@ -41,6 +41,8 @@ bm-prep () {
 bm-guess-e-source-e-targets () {
        local some_act=$1
        case "$some_act" in
+       sbuild*" --no-arch-all"*)
+               e_source=true;  e_targets='build-arch binary-arch'      ;;
        build-source)
                e_source=true;  e_targets=''                            ;;
        *" -b") e_source=false; e_targets='build binary'                ;;
index 2a69ca9..e9e92f4 100755 (executable)
@@ -29,8 +29,7 @@ bm-prep
 act="sbuild -c build --no-arch-all"
 real_act="$act"
 
-e_source=true
-e_targets='build-arch binary-arch'
+bm-guess-e-source-e-targets "$act"
 bm-act-iterate
 
 echo ok.