From a04da2a0ec14287eda7ffaefda38c484c745520e 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/subprojects/wrapper-manager-fds/tests/lib/env/default.nix b/subprojects/wrapper-manager-fds/tests/lib/env/default.nix index bb5eba86..ea92dc2d 100644 --- a/subprojects/wrapper-manager-fds/tests/lib/env/default.nix +++ b/subprojects/wrapper-manager-fds/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