~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/build/pymake/tests/override-propagate.mk

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

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