aboutsummaryrefslogtreecommitdiff
path: root/tests/locking.nix.in
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.nix.in
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.nix.in')
-rw-r--r--tests/locking.nix.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/locking.nix.in b/tests/locking.nix.in
new file mode 100644
index 000000000..72070678f
--- /dev/null
+++ b/tests/locking.nix.in
@@ -0,0 +1,18 @@
+let {
+
+ mkDrv = text: inputs: derivation {
+ name = "locking";
+ system = "@system@";
+ builder = "@shell@";
+ args = ["-e" "-x" ./locking.builder.sh];
+ inherit text inputs;
+ };
+
+ a = mkDrv "a" [];
+ b = mkDrv "b" [a];
+ c = mkDrv "c" [a b];
+ d = mkDrv "d" [a];
+ e = mkDrv "e" [c d];
+
+ body = e;
+} \ No newline at end of file