build/pymake/tests/parallel-simple.mk

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 #T commandline: ['-j2']
     3 # CAUTION: this makefile is also used by serial-toparallel.mk
     5 define SLOWMAKE
     6 printf "$@:0:" >>results
     7 sleep 0.5
     8 printf "$@:1:" >>results
     9 sleep 0.5
    10 printf "$@:2:" >>results
    11 endef
    13 EXPECTED = target1:0:target2:0:target1:1:target2:1:target1:2:target2:2:
    15 all:: target1 target2
    16 	cat results
    17 	test "$$(cat results)" = "$(EXPECTED)"
    18 	@echo TEST-PASS
    20 target1:
    21 	$(SLOWMAKE)
    23 target2:
    24 	sleep 0.1
    25 	$(SLOWMAKE)
    27 .PHONY: all

mercurial