* 1000th revision!
* A test to verify that locking of output paths (caused by concurrent invocations of Nix) works correctly.
This commit is contained in:
parent
a7bbe73971
commit
f044ccf702
4 changed files with 50 additions and 2 deletions
18
tests/locking.nix.in
Normal file
18
tests/locking.nix.in
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue