chiark / gitweb /
Test suite: Test build modes -g and -G
[dgit.git] / tests / tests / build-modes
1 #!/bin/bash
2 set -e
3 . tests/lib
4 . $troot/lib-build-modes
5
6 bm-prep
7
8 for act in                                      \
9         'build'                                 \
10         'build -S'                              \
11         'build -b'                              \
12         'build -B'                              \
13         'build -A'                              \
14         'build -F'                              \
15         'build -g'                              \
16         'build -G'                              \
17         build-source                            \
18 ; do
19         bm-guess-e-source-e-targets "$act"
20
21         case $act in
22         build-source)
23                 e_source=true
24                 e_targets=''
25                 cleanmodes="$cleanmodes_all"
26                 ;;
27         *)
28                 cleanmodes="$cleanmodes_default"
29                 ;;
30         esac
31
32         real_act="$act"
33
34         bm-act-iterate
35 done
36
37 echo ok.