* 1000th revision!

* A test to verify that locking of output paths (caused by concurrent
  invocations of Nix) works correctly.
This commit is contained in:
Eelco Dolstra 2004-05-04 13:56:30 +00:00
parent a7bbe73971
commit f044ccf702
4 changed files with 50 additions and 2 deletions

18
tests/locking.nix.in Normal file
View file

@ -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;
}