aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-11 17:12:44 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-11 17:12:44 +0530
commit89ac91f70a9788b7a39b1b130108b005ed354a7d (patch)
treead4e75e690cf82f2d42ab801c1a703b30c8bc6df /nixos
parent51528320d9ab23956d5d6492c38b5ef3899c2226 (diff)
nixosTests/sunset: init
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix39
1 files changed, 39 insertions, 0 deletions
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
(