From c5adc83694838ecd0a042263949a9d5e950f5878 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 28 Aug 2024 20:26:45 +0530 Subject: nixosTests/transitive-unbuilt-3: init --- nixos/tests/all-tests.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'nixos/tests/all-tests.nix') diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index f7e8325..4825d4a 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -10,6 +10,20 @@ let nodes.d.inputs.c = { }; # d->c }; + # A + # | + # B + # | + # C + transitive.dag = { + nodes.a = { + goal = true; + inputs.b = { }; + }; + nodes.b.inputs.c = { }; + nodes.c = {}; + }; + # A B C D # \ | / | # U V W @@ -89,6 +103,26 @@ builtins.mapAttrs ]; }; + transitive-unbuilt-3 = { + imports = [ + { + dag = { + test.unconstrained.builds = 3; + + constraints.builds = 2; + test.constrained.builds = 0; + + nodes = { + a.test.needed = true; + b.test.needed = true; + c.test.needed = true; + }; + }; + } + transitive + ]; + }; + sunset-unbuilt-7 = { imports = [ { -- cgit v1.2.3