comparison: build/pymake/tests/parallel-native.mk
build/pymake/tests/parallel-native.mk
- branch
- TOR_BUG_9701
- changeset 3
- 141e0f1194b1
equal
deleted
inserted
replaced
|
1 #T commandline: ['-j2'] |
|
2 |
|
3 # ensure that calling python commands doesn't block other targets |
|
4 ifndef SLEEP |
|
5 SLEEP := sleep |
|
6 endif |
|
7 |
|
8 PRINTF = printf "$@:0:" >>results |
|
9 EXPECTED = target2:0:target1:0: |
|
10 |
|
11 all:: target1 target2 |
|
12 cat results |
|
13 test "$$(cat results)" = "$(EXPECTED)" |
|
14 @echo TEST-PASS |
|
15 |
|
16 target1: |
|
17 $(SLEEP) 0.1 |
|
18 $(PRINTF) |
|
19 |
|
20 target2: |
|
21 $(PRINTF) |