diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-30 14:40:46 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-30 14:40:46 +0000 |
commit | 26ff1cdf89cae33918dfdef2027d135e099ed3b2 (patch) | |
tree | c9529ede26b47c71f809983c2a06ea25d477c390 /testpkgs/slow2 | |
parent | 64c617e9840b820b1d2d3ce2dd86a95506013b56 (diff) |
* A better test case for Nix race conditions.
Diffstat (limited to 'testpkgs/slow2')
-rwxr-xr-x | testpkgs/slow2/slow-build.sh | 14 | ||||
-rw-r--r-- | testpkgs/slow2/slow.fix | 5 |
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 000000000..99e18c0fb --- /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 000000000..52666951f --- /dev/null +++ b/testpkgs/slow2/slow.fix @@ -0,0 +1,5 @@ +Package( + [ ("name", "slow") + , ("build", Relative("slow2/slow-build.sh")) + ] +) |