summary refs log tree commit diff
path: root/testpkgs
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 /testpkgs
parentaaee69cfdef287406715fb3befd7debd3a5c6ce9 (diff)
downloadguix-2ac02440dc065d19e5bd00b9a0c538525e12909d.tar.gz
* Test cases for races.
Diffstat (limited to 'testpkgs')
-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 0000000000..a1bda1024e
--- /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 0000000000..5d019afbdd
--- /dev/null
+++ b/testpkgs/slow/slow.fix
@@ -0,0 +1,5 @@
+Package(
+  [ ("name", "slow")
+  , ("build", Relative("slow/slow-build.sh"))
+  ]
+)