Merge pull request 'clanServices: Move service tests to appropriate locations' (#3909) from ke-move-service-checks-to-service into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3909
This commit is contained in:
kenji
2025-06-09 13:26:31 +00:00
10 changed files with 39 additions and 9 deletions

View File

@@ -54,9 +54,6 @@ in
borgbackup = import ./borgbackup nixosTestArgs;
data-mesher = import ./data-mesher nixosTestArgs;
syncthing = import ./syncthing nixosTestArgs;
deltachat = import ./deltachat nixosTestArgs;
ergochat = import ./ergochat nixosTestArgs;
heisenbridge = import ./heisenbridge nixosTestArgs;
}
// lib.optionalAttrs (pkgs.stdenv.hostPlatform.system == "aarch64-linux") {
# for some reason this hangs in an odd place in CI, but it works on my machine ...

View File

@@ -1,6 +1,17 @@
{ lib, ... }:
{ lib, self, ... }:
{
clan.modules = {
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 = {
directory = ./.;
modules."@clan/deltachat" = ../../clanServices/deltachat/default.nix;
modules."@clan/deltachat" = ../../default.nix;
inventory = {
machines.server = { };

View File

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

View File

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

View File

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

View File

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