aboutsummaryrefslogtreecommitdiff
path: root/tests/locking.builder.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-05-04 13:56:30 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-05-04 13:56:30 +0000
commitf044ccf7025137ec541e165e7988772f27080a23 (patch)
tree90a3215c4c66682841ba628467e1863e20416fa8 /tests/locking.builder.sh
parenta7bbe739717c7419a374b29e6e4887325b1af7fd (diff)
* 1000th revision!
* A test to verify that locking of output paths (caused by concurrent invocations of Nix) works correctly.
Diffstat (limited to 'tests/locking.builder.sh')
-rw-r--r--tests/locking.builder.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/locking.builder.sh b/tests/locking.builder.sh
new file mode 100644
index 000000000..5c3dfdafb
--- /dev/null
+++ b/tests/locking.builder.sh
@@ -0,0 +1,9 @@
+export PATH=/bin:/usr/bin:$PATH
+
+sleep 3
+
+touch $out
+# Use `>>'; without proper locking this will cause text duplication.
+echo -n $(cat $inputs)$text >> $out
+
+sleep 2 \ No newline at end of file