diff options
author | Silvan Mosberger <contact@infinisil.com> | 2024-03-06 17:14:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 17:14:33 +0100 |
commit | fc3cc21d2a4e708cd1974b2fa44b670f1fc3fdbd (patch) | |
tree | 391972f650d83f80b709db2bdecf996d7a18805d /lib/tests | |
parent | afb6024584f130076d00eac4808a2db3be857a13 (diff) | |
parent | 612dcbe11ebc4d8739dba5c4d6c98504388c0fda (diff) |
Merge pull request #292209 from hercules-ci/lazyDerivation-multi-output
lib.lazyDerivation: Support multi-output derivations
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/misc.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 041122feadae8..98d1f4e71c488 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -1991,6 +1991,24 @@ runTests { }).drvPath; }; + testLazyDerivationMultiOutputReturnsDerivationAttrs = let + derivation = { + type = "derivation"; + outputs = ["out" "dev"]; + dev = "test dev"; + out = "test out"; + outPath = "test outPath"; + outputName = "out"; + drvPath = "test drvPath"; + name = "test name"; + system = "test system"; + meta.position = "/hi:23"; + }; + in { + expr = lazyDerivation { inherit derivation; outputs = ["out" "dev"]; passthru.meta.position = "/hi:23"; }; + expected = derivation; + }; + testTypeDescriptionInt = { expr = (with types; int).description; expected = "signed integer"; |