tests: Remove the test link farm

Fixes #1878
This commit is contained in:
traxys 2024-07-19 20:22:19 +02:00
parent e80a8874ac
commit b1576362a7
2 changed files with 39 additions and 38 deletions

View file

@ -10,16 +10,8 @@
...
}:
{
checks = {
tests = import ../tests {
inherit
pkgs
pkgsUnfree
helpers
makeNixvimWithModule
;
};
checks =
{
extra-args-tests = import ../tests/extra-args.nix {
inherit pkgs;
inherit makeNixvimWithModule;
@ -46,6 +38,14 @@
};
maintainers = import ../tests/maintainers.nix { inherit pkgs; };
};
}
// (import ../tests {
inherit
pkgs
pkgsUnfree
helpers
makeNixvimWithModule
;
});
};
}

View file

@ -35,10 +35,12 @@ let
}
];
};
in
# We attempt to build & execute all configurations
derivationList = builtins.map (
builtins.listToAttrs (
builtins.map (
{ name, cases }:
let
# The test case can either be the actual definition,
# or a child attr named `module`.
@ -47,7 +49,7 @@ let
in
{
inherit name;
path = mkTestDerivationFromNixvimModule {
value = mkTestDerivationFromNixvimModule {
inherit name;
tests = builtins.map (
{ name, case }:
@ -62,6 +64,5 @@ let
pkgs = pkgsUnfree;
};
}
) (testFiles ++ [ exampleFiles ]);
in
pkgs.linkFarm "nixvim-tests" derivationList
) (testFiles ++ [ exampleFiles ])
)