chiark / gitweb /
test suite: Test dgit build --build=
[dgit.git] / tests / tests / build-modes-long
1 #!/bin/bash
2 set -e
3 . tests/lib
4 . $troot/lib-build-modes
5
6 bm-prep
7
8 for build in                    \
9         'source'                \
10         'any'                   \
11         'all'                   \
12         'binary'                \
13         'full'                  \
14         'source,any'            \
15         'all,any'               \
16 ; do
17         act="build --build=$build"
18
19         case "$build" in
20         *source*|*full*)                e_source=true   ;;
21         *)                              e_source=false  ;;
22         esac
23
24         case "$build" in
25         *binary*|*any*all*|*all*any*)
26                         e_targets='build binary'                ;;
27         *any*)          e_targets='build-arch binary-arch'      ;;
28         *all*)          e_targets='build-indep binary-indep'    ;;
29         esac
30
31         cleanmodes="$cleanmodes_default"
32         real_act="$act"
33         bm-act-iterate
34 done
35
36 t-ok