summaryrefslogtreecommitdiff
path: root/tests/tests/quilt-gbp-build-modes
blob: 28711ccb73acb1935cc552e8e25bde5548311d16 (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
#!/bin/bash
set -e
. tests/lib
. $troot/lib-build-modes

t-dependencies sbuild
t-restrict x-dgit-schroot-build

t-gbp-example-prep

git checkout -b for-build-modes qc/quilt-tip-2
# build-modes cannot cope with branches containing /

bm-prep-ownpackage-branches for-build-modes

cleanmodes=git

for act in					\
	'build-source'				\
	'build -b'				\
	'build -S'				\
	'gbp-build -S'				\
	'gbp-build -b'				\
	'sbuild -c build --arch-all'		\
; do
	bm-guess-e-source-e-targets "$act"
	real_act="--quilt=gbp $act"
	case "$act" in
	sbuild*)    bm_quirk_after_act=bm-quirk-sbuild-after-act ;;
	gbp-*)	    real_act="$real_act --git-ignore-branch" ;;
	*)	    bm_quirk_after_act='' ;;
	esac
	bm-act-iterate
done

echo ok.