Files
clan-core/clanServices/hello-world/tests/eval-tests.nix
2025-08-11 12:03:04 +02:00

43 lines
738 B
Nix

{
module,
clanLib,
...
}:
let
testFlake = clanLib.clan {
self = { };
# Point to the folder of the module
# TODO: make this optional
directory = ./..;
# Create some test machines
machines.jon = {
nixpkgs.hostPlatform = "x86_64-linux";
};
machines.sara = {
nixpkgs.hostPlatform = "x86_64-linux";
};
# Register the module for the test
modules.hello-world = module;
# Use the module in the test
inventory.instances = {
"hello" = {
module.name = "hello-world";
module.input = "self";
roles.evening.machines.jon = { };
};
};
};
in
{
test_simple = {
config = testFlake.config;
expr = { };
expected = { };
};
}