tests: init testSuites

to test suites and profile processing
This commit is contained in:
Pacman99 2021-03-28 15:05:47 -07:00
parent 92700888b7
commit 259ec11d92
3 changed files with 23 additions and 0 deletions

View File

@ -66,4 +66,24 @@ lib.runTests {
(rgxToString "a?" "a" == "a")
(rgxToString "hat" "foohatbar" == "hat")
];
testSuites =
let
profiles = os.mkProfileAttrs (toString ./profiles);
users = "";
userProfiles = "";
suites = { profiles, ... }: {
system.bar = [ profiles.foo ];
};
in
{
expr = os.mkSuites { inherit profiles users userProfiles suites; };
expected = {
system = {
bar = [ profiles.foo.default ];
allProfiles = [ profiles.foo.default profiles.t.default ];
allUsers = [];
};
};
};
}

View File

@ -0,0 +1,3 @@
{
bar = 5;
}

View File