improve testing infra
This commit is contained in:
parent
80d9e1029d
commit
1242ba2274
23
flake.nix
23
flake.nix
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user