mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51: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.
This commit is contained in:
parent
99a16c5203
commit
a0b2b75f59
11 changed files with 91 additions and 64 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
|
||||
|
@ -58,11 +66,11 @@ derivation' {
|
|||
outputChecks = {
|
||||
out = {
|
||||
allowedReferences = [ foo ];
|
||||
allowedRequisites = [ foo ];
|
||||
allowedRequisites = [ foo.dev ];
|
||||
};
|
||||
bin = {
|
||||
disallowedReferences = [ bar ];
|
||||
disallowedRequisites = [ bar ];
|
||||
disallowedRequisites = [ bar.dev ];
|
||||
};
|
||||
dev = {
|
||||
maxSize = 789;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue