michael@0: #T commandline: ['CLINEVAR=clineval', 'CLINEVAR2=clineval2'] michael@0: michael@0: # this doesn't actually test overrides yet, because they aren't implemented in pymake, michael@0: # but testing origins in general is important michael@0: michael@0: MVAR = mval michael@0: CLINEVAR = deadbeef michael@0: michael@0: override CLINEVAR2 = mval2 michael@0: michael@0: all: michael@0: test "$(origin NOVAR)" = "undefined" michael@0: test "$(CLINEVAR)" = "clineval" michael@0: test "$(origin CLINEVAR)" = "command line" michael@0: test "$(MVAR)" = "mval" michael@0: test "$(origin MVAR)" = "file" michael@0: test "$(@)" = "all" michael@0: test "$(origin @)" = "automatic" michael@0: test "$(origin CLINEVAR2)" = "override" michael@0: test "$(CLINEVAR2)" = "mval2" michael@0: @echo TEST-PASS