aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix34
1 files changed, 9 insertions, 25 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 7002237..f9e2df5 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -1,4 +1,4 @@
-{ testers }:
+{ lib, testers }:
let
dsl = ./dsl.nix;
@@ -16,33 +16,17 @@ let
sunset.dag = {
nodes =
let
- abcInputs = {
- u = { };
- v = { };
+ goalDependsOn = inputs: {
+ goal = true;
+ inputs = lib.genAttrs inputs (_: { });
};
in
{
- a = {
- goal = true;
- inputs = abcInputs;
- };
- b = {
- goal = true;
- inputs = abcInputs;
- };
- c = {
- goal = true;
- inputs = abcInputs;
- };
-
- d = {
- goal = true;
- inputs.w = { };
- };
- e = {
- goal = true;
- inputs.x = { };
- };
+ a = goalDependsOn [ "u" "v" ];
+ b = goalDependsOn [ "u" "v" ];
+ c = goalDependsOn [ "u" "v" ];
+ d = goalDependsOn [ "w" ];
+ e = goalDependsOn [ "x" ];
u = { };
v = { };