build/pymake/tests/submake.makefile2

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 # -*- Mode: Makefile -*-
     3 $(info MAKEFLAGS = '$(MAKEFLAGS)')
     4 $(info MAKE = '$(MAKE)')
     5 $(info value MAKE = "$(value MAKE)")
     7 shellresult := $(shell echo -n $$EVAR)
     8 ifneq ($(shellresult),eval)
     9 $(error EVAR should be eval, is instead $(shellresult))
    10 endif
    12 all:
    13 	env
    14 	test "$(MAKELEVEL)" = "1"
    15 	echo "value(MAKE)" '$(value MAKE)'
    16 	echo "value(MAKE_COMMAND)" = '$(value MAKE_COMMAND)'
    17 	test "$(origin CVAR)" = "command line"
    18 	test "$(CVAR)" = "c val=spac\ed"
    19 	test "$(origin EVAR)" = "environment"
    20 	test "$(EVAR)" = "eval"
    21 	test "$(OVAL)" = "cline"
    22 	test "$(OVAL2)" = "cline2"
    23 	test "$(ALLVAR)" = "allspecific"
    24 	@echo TEST-PASS

mercurial