improve testing infra

This commit is contained in:
Simon Gardling 2025-08-07 21:19:22 -07:00
parent 80d9e1029d
commit 1242ba2274
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -222,9 +222,24 @@
};
};
tests = import ./tests/tests.nix {
inherit pkgs lib;
config = self.nixosConfigurations.muffin.config;
};
packages.${system} =
let
testSuite = import ./tests/tests.nix {
inherit pkgs lib;
config = self.nixosConfigurations.muffin.config;
};
in
{
tests = pkgs.linkFarm "all-tests" (
pkgs.lib.mapAttrsToList (name: test: {
name = name;
path = test;
}) testSuite
);
}
// (pkgs.lib.mapAttrs' (name: test: {
name = "test-${name}";
value = test;
}) testSuite);
};
}