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

bm-prep

for act in					\
	'build'					\
	'build -S'				\
	'build -b'				\
	'build -B'				\
	'build -A'				\
	'build -F'				\
	'build -g'				\
	'build -G'				\
	build-source				\
; do
	bm-guess-e-source-e-targets "$act"

	case $act in
	build-source)
		cleanmodes="$cleanmodes_all"
		;;
	*)
		cleanmodes="$cleanmodes_default"
		;;
	esac

	real_act="$act"

	bm-act-iterate
done

t-ok