nix-community.nixvim/flake-modules/tests.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-05 19:39:35 +02:00
{ self, ... }:
{
perSystem =
{
pkgs,
config,
system,
helpers,
makeNixvimWithModuleUnfree,
makeNixvimWithModule,
...
}:
{
checks = {
tests = import ../tests {
inherit pkgs helpers makeNixvimWithModule;
inherit (pkgs) lib;
makeNixvim =
configuration:
makeNixvimWithModuleUnfree {
module = {
config = configuration;
};
};
2024-05-05 19:39:35 +02:00
};
2024-05-05 19:39:35 +02:00
extra-args-tests = import ../tests/extra-args.nix {
inherit pkgs;
inherit makeNixvimWithModule;
};
2024-05-05 19:39:35 +02:00
extend = import ../tests/extend.nix { inherit pkgs makeNixvimWithModule; };
2024-05-05 19:39:35 +02:00
enable-except-in-tests = import ../tests/enable-except-in-tests.nix {
inherit pkgs makeNixvimWithModule;
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
};
2024-05-05 19:39:35 +02:00
no-flake = import ../tests/no-flake.nix {
inherit system;
inherit (self.lib.${system}.check) mkTestDerivationFromNvim;
nixvim = "${self}";
};
2024-05-05 19:39:35 +02:00
lib-tests = import ../tests/lib-tests.nix {
inherit pkgs helpers;
inherit (pkgs) lib;
};
};
};
}