summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/var-overrides.mk
blob: bd0765d19f3ea8f8b65678f577278f595cc971fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#T commandline: ['CLINEVAR=clineval', 'CLINEVAR2=clineval2']

# this doesn't actually test overrides yet, because they aren't implemented in pymake,
# but testing origins in general is important

MVAR = mval
CLINEVAR = deadbeef

override CLINEVAR2 = mval2

all:
	test "$(origin NOVAR)" = "undefined"
	test "$(CLINEVAR)" = "clineval"
	test "$(origin CLINEVAR)" = "command line"
	test "$(MVAR)" = "mval"
	test "$(origin MVAR)" = "file"
	test "$(@)" = "all"
	test "$(origin @)" = "automatic"
	test "$(origin CLINEVAR2)" = "override"
	test "$(CLINEVAR2)" = "mval2"
	@echo TEST-PASS