aboutsummaryrefslogtreecommitdiff
path: root/nixos/tests
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2024-08-16 15:28:28 +0000
committerSomeone Serge <sergei.kozlukov@aalto.fi>2024-08-16 15:28:28 +0000
commitb5e749c4d620b37b3b52b3ffdb0c69ec3d96fb6e (patch)
tree4a96448321daf081daadfe4e8e3b45b13a983b20 /nixos/tests
parentb895c640d549e7a58127615862d05a5044ac8555 (diff)
nixosTests: sunset-unbuilt: refactor the dag
Diffstat (limited to 'nixos/tests')
-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 = { };