PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/build/pymake/tests/var-overrides.mk

http://github.com/zpao/v8monkey
Makefile | 21 lines | 14 code | 4 blank | 3 comment | 0 complexity | d2764a6093a4ccb5a8af47ef18d5550c MD5 | raw file
 1#T commandline: ['CLINEVAR=clineval', 'CLINEVAR2=clineval2']
 2
 3# this doesn't actually test overrides yet, because they aren't implemented in pymake,
 4# but testing origins in general is important
 5
 6MVAR = mval
 7CLINEVAR = deadbeef
 8
 9override CLINEVAR2 = mval2
10
11all:
12	test "$(origin NOVAR)" = "undefined"
13	test "$(CLINEVAR)" = "clineval"
14	test "$(origin CLINEVAR)" = "command line"
15	test "$(MVAR)" = "mval"
16	test "$(origin MVAR)" = "file"
17	test "$(@)" = "all"
18	test "$(origin @)" = "automatic"
19	test "$(origin CLINEVAR2)" = "override"
20	test "$(CLINEVAR2)" = "mval2"
21	@echo TEST-PASS