summaryrefslogtreecommitdiff
path: root/tests/tests/build-modes-gbp
blob: 2e55cada1b6fb029c4d4698d182b48c4f6583ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -e
. tests/lib
. $troot/lib-build-modes

t-dependencies git-buildpackage

quirk-clean-fixup () {
	case $cleanmode in
	dpkg-source*)
		# git-buildpackage runs the clean target twice somehow
		perl -i.unfixed -ne '
			print unless
				$_ eq $last &&
				$_ eq "EXAMPLE RULES TARGET clean\n";
			$last = $_;
		' $bmgot
		;;
	esac
}
bm_quirk_before_diff=quirk-clean-fixup

bm-prep

for act in					\
	'gbp-build -S'				\
	'gbp-build -b'				\
	'gbp-build -B'				\
	'gbp-build -A'				\
	'gbp-build -F'				\
; do
	bm-guess-e-source-e-targets "$act"
	real_act="$act --git-ignore-branch"
	bm-act-iterate
done

echo ok.