Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | #T commandline: ['-w', 'OVAR=oval'] |
michael@0 | 2 | |
michael@0 | 3 | OVAR=mval |
michael@0 | 4 | |
michael@0 | 5 | all: vartest run-override |
michael@0 | 6 | $(MAKE) -f $(TESTPATH)/override-propagate.mk vartest |
michael@0 | 7 | @echo TEST-PASS |
michael@0 | 8 | |
michael@0 | 9 | CLINE := OVAR=oval TESTPATH=$(TESTPATH) NATIVE_TESTPATH=$(NATIVE_TESTPATH) |
michael@0 | 10 | ifdef __WIN32__ |
michael@0 | 11 | CLINE += __WIN32__=1 |
michael@0 | 12 | endif |
michael@0 | 13 | |
michael@0 | 14 | SORTED_CLINE := $(subst \,\\,$(sort $(CLINE))) |
michael@0 | 15 | |
michael@0 | 16 | vartest: |
michael@0 | 17 | @echo MAKELEVEL: '$(MAKELEVEL)' |
michael@0 | 18 | test '$(value MAKEFLAGS)' = 'w -- $$(MAKEOVERRIDES)' |
michael@0 | 19 | test '$(origin MAKEFLAGS)' = 'file' |
michael@0 | 20 | test '$(value MAKEOVERRIDES)' = '$${-*-command-variables-*-}' |
michael@0 | 21 | test "$(sort $(MAKEOVERRIDES))" = "$(SORTED_CLINE)" |
michael@0 | 22 | test '$(origin MAKEOVERRIDES)' = 'environment' |
michael@0 | 23 | test '$(origin -*-command-variables-*-)' = 'automatic' |
michael@0 | 24 | test "$(origin OVAR)" = "command line" |
michael@0 | 25 | test "$(OVAR)" = "oval" |
michael@0 | 26 | |
michael@0 | 27 | run-override: MAKEOVERRIDES= |
michael@0 | 28 | run-override: |
michael@0 | 29 | test "$(OVAR)" = "oval" |
michael@0 | 30 | $(MAKE) -f $(TESTPATH)/override-propagate.mk otest |
michael@0 | 31 | |
michael@0 | 32 | otest: |
michael@0 | 33 | test '$(value MAKEFLAGS)' = 'w' |
michael@0 | 34 | test '$(value MAKEOVERRIDES)' = '$${-*-command-variables-*-}' |
michael@0 | 35 | test '$(MAKEOVERRIDES)' = '' |
michael@0 | 36 | test '$(origin -*-command-variables-*-)' = 'undefined' |
michael@0 | 37 | test "$(OVAR)" = "mval" |