From 2ac02440dc065d19e5bd00b9a0c538525e12909d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 30 Jul 2003 13:35:46 +0000 Subject: [PATCH] * Test cases for races. --- testpkgs/slow/slow-build.sh | 14 ++++++++++++++ testpkgs/slow/slow.fix | 5 +++++ 2 files changed, 19 insertions(+) create mode 100755 testpkgs/slow/slow-build.sh create mode 100644 testpkgs/slow/slow.fix 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")) + ] +)