summaryrefslogtreecommitdiff
path: root/tests/tests/build-modes
blob: a8c5d5cfcaf8720b368eda864533e6828fa4177e (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-source				\
; do
	bm-guess-e-source-e-targets "$act"

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

	real_act="$act"

	bm-act-iterate
done

echo ok.