From 4caaca3b710e302f55c53c2ed56e79da4170200b Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 8 Jul 2024 21:13:32 +0800 Subject: [PATCH] wrapper-manager-fds/tests: update test for env subset --- tests/lib/env/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/lib/env/default.nix b/tests/lib/env/default.nix index bb5eba8..ea92dc2 100644 --- a/tests/lib/env/default.nix +++ b/tests/lib/env/default.nix @@ -1,6 +1,32 @@ { pkgs, lib, self }: lib.runTests { + testsEvaluateSampleConfiguration = { + expr = + let + sampleConf = self.env.eval { + inherit pkgs; + modules = [ ./wrapper-neofetch.nix ]; + specialArgs.yourMomName = "Joe Mama"; + }; + in + lib.isDerivation sampleConf.config.build.toplevel; + expected = true; + }; + + testsEvaluateSampleConfiguration2 = { + expr = + let + sampleConf = self.env.eval { + inherit pkgs; + modules = [ ./wrapper-fastfetch.nix ]; + specialArgs.yourMomName = "Joe Mama"; + }; + in + lib.isDerivation sampleConf.config.build.toplevel; + expected = true; + }; + testsBuildSampleConfiguration = { expr = let