chiark / gitweb /
Test suite: build-modes tests: Generate id rather than using counter
[dgit.git] / tests / tests / build-modes-gbp
1 #!/bin/bash
2 set -e
3 . tests/lib
4 . $troot/lib-build-modes
5
6 t-dependencies git-buildpackage
7
8 quirk-clean-fixup () {
9         case $cleanmode in
10         dpkg-source*)
11                 # git-buildpackage runs the clean target twice somehow
12                 perl -i.unfixed -ne '
13                         print unless
14                                 $_ eq $last &&
15                                 $_ eq "EXAMPLE RULES TARGET clean\n";
16                         $last = $_;
17                 ' $bmgot
18                 ;;
19         esac
20 }
21 bm_quirk_before_diff=quirk-clean-fixup
22
23 bm-prep
24
25 for act in                                      \
26         'git-build -S'                          \
27         'git-build -b'                          \
28         'git-build -B'                          \
29         'git-build -A'                          \
30         'git-build -F'                          \
31 ; do
32         bm-guess-e-source-e-targets "$act"
33         real_act="$act --git-ignore-branch"
34         bm-act-iterate
35 done
36
37 echo ok.