services/syncthing: Add eval-test

This commit is contained in:
a-kenji
2025-07-31 16:38:28 +02:00
parent a5e51f658d
commit 9df7e6df1e
2 changed files with 85 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
{
self,
lib,
inputs,
...
}:
let
@@ -13,8 +14,30 @@ in
syncthing = module;
};
perSystem =
let
unit-test-module = (
self.clanLib.test.flakeModules.makeEvalChecks {
inherit module;
inherit inputs;
fileset = lib.fileset.unions [
# The zerotier service being tested
../../clanServices/syncthing
# Required modules
../../nixosModules/clanCore
# Dependencies like clan-cli
../../pkgs/clan-cli
];
testName = "syncthing";
tests = ./tests/eval-tests.nix;
testArgs = { };
}
);
in
{ ... }:
{
imports = [
unit-test-module
];
/**
1. Prepare the test vars
nix run .#generate-test-vars -- clanServices/syncthing/tests/vm syncthing-service