summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/parallel-native.mk
blob: d50cfbdbb35577cb4e155a4c4d8f63fb368fc2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#T commandline: ['-j2']

# ensure that calling python commands doesn't block other targets
ifndef SLEEP
SLEEP := sleep
endif

PRINTF = printf "$@:0:" >>results
EXPECTED = target2:0:target1:0:

all:: target1 target2
	cat results
	test "$$(cat results)" = "$(EXPECTED)"
	@echo TEST-PASS

target1:
	$(SLEEP) 0.1
	$(PRINTF)

target2:
	$(PRINTF)