mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
37
build/pymake/tests/override-propagate.mk
Normal file
37
build/pymake/tests/override-propagate.mk
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#T commandline: ['-w', 'OVAR=oval']
|
||||
|
||||
OVAR=mval
|
||||
|
||||
all: vartest run-override
|
||||
$(MAKE) -f $(TESTPATH)/override-propagate.mk vartest
|
||||
@echo TEST-PASS
|
||||
|
||||
CLINE := OVAR=oval TESTPATH=$(TESTPATH) NATIVE_TESTPATH=$(NATIVE_TESTPATH)
|
||||
ifdef __WIN32__
|
||||
CLINE += __WIN32__=1
|
||||
endif
|
||||
|
||||
SORTED_CLINE := $(subst \,\\,$(sort $(CLINE)))
|
||||
|
||||
vartest:
|
||||
@echo MAKELEVEL: '$(MAKELEVEL)'
|
||||
test '$(value MAKEFLAGS)' = 'w -- $$(MAKEOVERRIDES)'
|
||||
test '$(origin MAKEFLAGS)' = 'file'
|
||||
test '$(value MAKEOVERRIDES)' = '$${-*-command-variables-*-}'
|
||||
test "$(sort $(MAKEOVERRIDES))" = "$(SORTED_CLINE)"
|
||||
test '$(origin MAKEOVERRIDES)' = 'environment'
|
||||
test '$(origin -*-command-variables-*-)' = 'automatic'
|
||||
test "$(origin OVAR)" = "command line"
|
||||
test "$(OVAR)" = "oval"
|
||||
|
||||
run-override: MAKEOVERRIDES=
|
||||
run-override:
|
||||
test "$(OVAR)" = "oval"
|
||||
$(MAKE) -f $(TESTPATH)/override-propagate.mk otest
|
||||
|
||||
otest:
|
||||
test '$(value MAKEFLAGS)' = 'w'
|
||||
test '$(value MAKEOVERRIDES)' = '$${-*-command-variables-*-}'
|
||||
test '$(MAKEOVERRIDES)' = ''
|
||||
test '$(origin -*-command-variables-*-)' = 'undefined'
|
||||
test "$(OVAR)" = "mval"
|
||||
Loading…
Add table
Add a link
Reference in a new issue