Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | #T commandline: ['CLINEVAR=clineval', 'CLINEVAR2=clineval2'] |
michael@0 | 2 | |
michael@0 | 3 | # this doesn't actually test overrides yet, because they aren't implemented in pymake, |
michael@0 | 4 | # but testing origins in general is important |
michael@0 | 5 | |
michael@0 | 6 | MVAR = mval |
michael@0 | 7 | CLINEVAR = deadbeef |
michael@0 | 8 | |
michael@0 | 9 | override CLINEVAR2 = mval2 |
michael@0 | 10 | |
michael@0 | 11 | all: |
michael@0 | 12 | test "$(origin NOVAR)" = "undefined" |
michael@0 | 13 | test "$(CLINEVAR)" = "clineval" |
michael@0 | 14 | test "$(origin CLINEVAR)" = "command line" |
michael@0 | 15 | test "$(MVAR)" = "mval" |
michael@0 | 16 | test "$(origin MVAR)" = "file" |
michael@0 | 17 | test "$(@)" = "all" |
michael@0 | 18 | test "$(origin @)" = "automatic" |
michael@0 | 19 | test "$(origin CLINEVAR2)" = "override" |
michael@0 | 20 | test "$(CLINEVAR2)" = "mval2" |
michael@0 | 21 | @echo TEST-PASS |