mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-30 22:57:58 +00:00
wrapper-manager-fds/tests: update test for env subset
This commit is contained in:
parent
28dfaefc20
commit
4caaca3b71
26
tests/lib/env/default.nix
vendored
26
tests/lib/env/default.nix
vendored
@ -1,6 +1,32 @@
|
|||||||
{ pkgs, lib, self }:
|
{ pkgs, lib, self }:
|
||||||
|
|
||||||
lib.runTests {
|
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 = {
|
testsBuildSampleConfiguration = {
|
||||||
expr =
|
expr =
|
||||||
let
|
let
|
||||||
|
Loading…
Reference in New Issue
Block a user