mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Derivation "advanced attrs" test: Ensure fields are set to distinct values
We had fields set to the same values before in our test data. This is
not a problem per-se, but does mean we wouldn't catch certain mixups.
Now, the fields are set to distinct values (where possible), which makes
the test more robust.
(cherry picked from commit a0b2b75f59
)
This commit is contained in:
parent
5f0ddd7467
commit
30d900b313
11 changed files with 77 additions and 50 deletions
|
@ -23,6 +23,10 @@ let
|
|||
"-c"
|
||||
"echo foo > $out"
|
||||
];
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
};
|
||||
|
||||
bar = derivation' {
|
||||
|
@ -33,6 +37,10 @@ let
|
|||
"-c"
|
||||
"echo bar > $out"
|
||||
];
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
};
|
||||
|
||||
in
|
||||
|
@ -50,9 +58,9 @@ derivation' {
|
|||
impureEnvVars = [ "UNICORN" ];
|
||||
__darwinAllowLocalNetworking = true;
|
||||
allowedReferences = [ foo ];
|
||||
allowedRequisites = [ foo ];
|
||||
allowedRequisites = [ foo.dev ];
|
||||
disallowedReferences = [ bar ];
|
||||
disallowedRequisites = [ bar ];
|
||||
disallowedRequisites = [ bar.dev ];
|
||||
requiredSystemFeatures = [
|
||||
"rainbow"
|
||||
"uid-range"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue