build/pymake/tests/serial-doublecolon-execution.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/pymake/tests/serial-doublecolon-execution.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +#T commandline: ['-j3']
     1.5 +
     1.6 +# Commands of double-colon rules are always executed in order.
     1.7 +
     1.8 +all: dc
     1.9 +	cat status
    1.10 +	test "$$(cat status)" = "all1:all2:"
    1.11 +	@echo TEST-PASS
    1.12 +
    1.13 +dc:: slowt
    1.14 +	printf "all1:" >> status
    1.15 +
    1.16 +dc::
    1.17 +	sleep 0.2
    1.18 +	printf "all2:" >> status
    1.19 +
    1.20 +slowt:
    1.21 +	sleep 1

mercurial