diff options
Diffstat (limited to 'tests/check-reqs.nix')
-rw-r--r-- | tests/check-reqs.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/check-reqs.nix b/tests/check-reqs.nix index 5af8ea6fa185..41436cb48e08 100644 --- a/tests/check-reqs.nix +++ b/tests/check-reqs.nix @@ -40,4 +40,18 @@ rec { test3 = makeTest 3 [ dep1 deps ]; test4 = makeTest 4 [ deps ]; test5 = makeTest 5 []; + + test6 = mkDerivation { + name = "check-reqs"; + inherit deps; + builder = builtins.toFile "builder.sh" "mkdir $out; ln -s $deps $out/depdir1"; + disallowedRequisites = [dep1]; + }; + + test7 = mkDerivation { + name = "check-reqs"; + inherit deps; + builder = builtins.toFile "builder.sh" "mkdir $out; ln -s $deps $out/depdir1"; + disallowedRequisites = [test1]; + }; } |