about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-30T14·40+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-30T14·40+0000
commit26ff1cdf89cae33918dfdef2027d135e099ed3b2 (patch)
treec9529ede26b47c71f809983c2a06ea25d477c390
parent64c617e9840b820b1d2d3ce2dd86a95506013b56 (diff)
* A better test case for Nix race conditions.
-rwxr-xr-xtestpkgs/slow2/slow-build.sh14
-rw-r--r--testpkgs/slow2/slow.fix5
2 files changed, 19 insertions, 0 deletions
diff --git a/testpkgs/slow2/slow-build.sh b/testpkgs/slow2/slow-build.sh
new file mode 100755
index 000000000000..99e18c0fb779
--- /dev/null
+++ b/testpkgs/slow2/slow-build.sh
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+echo "builder started..."
+
+for i in $(seq 1 30); do
+    echo $i
+    sleep 1
+done
+
+mkdir $out
+
+echo "done" > $out/bla
+
+echo "builder finished"
diff --git a/testpkgs/slow2/slow.fix b/testpkgs/slow2/slow.fix
new file mode 100644
index 000000000000..52666951fdbf
--- /dev/null
+++ b/testpkgs/slow2/slow.fix
@@ -0,0 +1,5 @@
+Package(
+  [ ("name", "slow")
+  , ("build", Relative("slow2/slow-build.sh"))
+  ]
+)