clanServices: Move deltachat test to appropriate location

Move the deltachat clanService test to the deltachat clan service.
The tests should live close to the definition of the service, so that
debugging and discoverability is better.
This commit is contained in:
a-kenji
2025-06-09 14:33:24 +02:00
parent d37c7c4c05
commit 95acdfa4f8
4 changed files with 13 additions and 3 deletions

View File

@@ -54,7 +54,6 @@ in
borgbackup = import ./borgbackup nixosTestArgs; borgbackup = import ./borgbackup nixosTestArgs;
data-mesher = import ./data-mesher nixosTestArgs; data-mesher = import ./data-mesher nixosTestArgs;
syncthing = import ./syncthing nixosTestArgs; syncthing = import ./syncthing nixosTestArgs;
deltachat = import ./deltachat nixosTestArgs;
ergochat = import ./ergochat nixosTestArgs; ergochat = import ./ergochat nixosTestArgs;
heisenbridge = import ./heisenbridge nixosTestArgs; heisenbridge = import ./heisenbridge nixosTestArgs;
} }

View File

@@ -1,6 +1,17 @@
{ lib, ... }: { lib, self, ... }:
{ {
clan.modules = { clan.modules = {
deltachat = lib.modules.importApply ./default.nix { }; deltachat = lib.modules.importApply ./default.nix { };
}; };
perSystem =
{ pkgs, ... }:
{
checks = lib.optionalAttrs (pkgs.stdenv.isLinux) {
deltachat = import ./tests/vm/default.nix {
inherit pkgs;
clan-core = self;
nixosLib = import (self.inputs.nixpkgs + "/nixos/lib") { };
};
};
};
} }

View File

@@ -17,7 +17,7 @@ nixosLib.runTest (
clan = { clan = {
directory = ./.; directory = ./.;
modules."@clan/deltachat" = ../../clanServices/deltachat/default.nix; modules."@clan/deltachat" = ../../default.nix;
inventory = { inventory = {
machines.server = { }; machines.server = { };