From 26ff1cdf89cae33918dfdef2027d135e099ed3b2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 30 Jul 2003 14:40:46 +0000 Subject: * A better test case for Nix race conditions. --- testpkgs/slow2/slow-build.sh | 14 ++++++++++++++ testpkgs/slow2/slow.fix | 5 +++++ 2 files changed, 19 insertions(+) create mode 100755 testpkgs/slow2/slow-build.sh create mode 100644 testpkgs/slow2/slow.fix 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")) + ] +) -- cgit 1.4.1