From 89ac91f70a9788b7a39b1b130108b005ed354a7d Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 11 Aug 2024 17:12:44 +0530 Subject: nixosTests/sunset: init --- nixos/tests/all-tests.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'nixos') diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index e255fbe..7f7c6be 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -12,6 +12,45 @@ let nodes.d.inputs.b = { }; # d->b nodes.d.inputs.c = { }; # d->c }; + + # A B C D E + # \ | / | | + # U V W X + sunset.dag = { + nodes = let + abcInputs = { + u = {}; + v = {}; + }; + in { + a = { + request = true; + inputs = abcInputs; + }; + b = { + request = true; + inputs = abcInputs; + }; + c = { + request = true; + inputs = abcInputs; + }; + + d = { + request = true; + inputs.w = {}; + }; + e = { + request = true; + inputs.x = {}; + }; + + u = {}; + v = {}; + w = {}; + x = {}; + }; + }; in builtins.mapAttrs ( -- cgit v1.2.3