mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
parent
e80a8874ac
commit
b1576362a7
2 changed files with 39 additions and 38 deletions
|
@ -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
|
||||
;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 ])
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue