aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-30 13:35:46 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-30 13:35:46 +0000
commit2ac02440dc065d19e5bd00b9a0c538525e12909d (patch)
treeb592d044e7104414c15b342e75de7c3ffcdca14e
parentaaee69cfdef287406715fb3befd7debd3a5c6ce9 (diff)
* Test cases for races.
-rwxr-xr-xtestpkgs/slow/slow-build.sh14
-rw-r--r--testpkgs/slow/slow.fix5
2 files changed, 19 insertions, 0 deletions
diff --git a/testpkgs/slow/slow-build.sh b/testpkgs/slow/slow-build.sh
new file mode 100755
index 000000000..a1bda1024
--- /dev/null
+++ b/testpkgs/slow/slow-build.sh
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+echo "builder started..."
+
+mkdir $out
+
+for i in $(seq 1 30); do
+ echo $i
+ sleep 1
+done
+
+echo "done" > $out/bla
+
+echo "builder finished"
diff --git a/testpkgs/slow/slow.fix b/testpkgs/slow/slow.fix
new file mode 100644
index 000000000..5d019afbd
--- /dev/null
+++ b/testpkgs/slow/slow.fix
@@ -0,0 +1,5 @@
+Package(
+ [ ("name", "slow")
+ , ("build", Relative("slow/slow-build.sh"))
+ ]
+)