summaryrefslogtreecommitdiff
path: root/tests/tests/build-modes-long
blob: 20a2ce37d5246bddd92d4922c5e4568bdbb83d2d (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

bm-prep

for build in			\
	'source'		\
	'any'			\
	'all'			\
	'binary'		\
	'full'			\
	'source,any'		\
	'all,any'		\
; do
	act="build --build=$build"

	case "$build" in
	*source*|*full*)		e_source=true	;;
	*)				e_source=false	;;
	esac

	case "$build" in
	*binary*|*any*all*|*all*any*)
			e_targets='build binary'		;;
	*any*)		e_targets='build-arch binary-arch'	;;
	*all*)		e_targets='build-indep binary-indep'	;;
	esac

	cleanmodes="$cleanmodes_default"
	real_act="$act"
	bm-act-iterate
done

t-ok