build/pymake/tests/parallel-simple.mk

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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