Add a test validating direct and indirect constituents

This commit is contained in:
Graham Christensen
2022-02-20 11:54:14 -05:00
parent dfb3eccfaa
commit 5d169e3a2e
2 changed files with 75 additions and 0 deletions

40
t/jobs/constituents.nix Normal file
View File

@ -0,0 +1,40 @@
with import ./config.nix;
rec {
constituentA = mkDerivation {
name = "empty-dir-A";
builder = ./empty-dir-builder.sh;
};
constituentB = mkDerivation {
name = "empty-dir-B";
builder = ./empty-dir-builder.sh;
};
direct_aggregate = mkDerivation {
name = "direct_aggregate";
_hydraAggregate = true;
constituents = [
constituentA
];
builder = ./empty-dir-builder.sh;
};
indirect_aggregate = mkDerivation {
name = "indirect_aggregate";
_hydraAggregate = true;
constituents = [
"constituentA"
];
builder = ./empty-dir-builder.sh;
};
mixed_aggregate = mkDerivation {
name = "mixed_aggregate";
_hydraAggregate = true;
constituents = [
"constituentA"
constituentB
];
builder = ./empty-dir-builder.sh;
};
}