summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/serial-doublecolon-execution.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/serial-doublecolon-execution.mk')
-rw-r--r--build/pymake/tests/serial-doublecolon-execution.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/build/pymake/tests/serial-doublecolon-execution.mk b/build/pymake/tests/serial-doublecolon-execution.mk
new file mode 100644
index 000000000..1871cb13a
--- /dev/null
+++ b/build/pymake/tests/serial-doublecolon-execution.mk
@@ -0,0 +1,18 @@
+#T commandline: ['-j3']
+
+# Commands of double-colon rules are always executed in order.
+
+all: dc
+ cat status
+ test "$$(cat status)" = "all1:all2:"
+ @echo TEST-PASS
+
+dc:: slowt
+ printf "all1:" >> status
+
+dc::
+ sleep 0.2
+ printf "all2:" >> status
+
+slowt:
+ sleep 1