mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 10:18:36 +02:00
Adds a regression test for #2076. This test ensures that `extraConfigLua` is used in `finalPackage` and that the test will fail correctly when running `nvim` results in unexpected output.
49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ self, ... }:
|
|
{
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
pkgsUnfree,
|
|
system,
|
|
helpers,
|
|
makeNixvimWithModule,
|
|
...
|
|
}:
|
|
{
|
|
checks = {
|
|
extra-args-tests = import ../tests/extra-args.nix {
|
|
inherit pkgs;
|
|
inherit makeNixvimWithModule;
|
|
};
|
|
|
|
extend = import ../tests/extend.nix { inherit pkgs makeNixvimWithModule; };
|
|
|
|
extra-files = import ../tests/extra-files.nix { inherit pkgs makeNixvimWithModule; };
|
|
|
|
enable-except-in-tests = import ../tests/enable-except-in-tests.nix {
|
|
inherit pkgs makeNixvimWithModule;
|
|
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
|
|
};
|
|
|
|
failing-tests = import ../tests/failing-tests.nix {
|
|
inherit pkgs;
|
|
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
|
|
};
|
|
|
|
no-flake = import ../tests/no-flake.nix {
|
|
inherit system;
|
|
inherit (self.lib.${system}.check) mkTestDerivationFromNvim;
|
|
nixvim = "${self}";
|
|
};
|
|
|
|
lib-tests = import ../tests/lib-tests.nix {
|
|
inherit pkgs helpers;
|
|
inherit (pkgs) lib;
|
|
};
|
|
|
|
maintainers = import ../tests/maintainers.nix { inherit pkgs; };
|
|
|
|
generated = pkgs.callPackage ../tests/generated.nix { };
|
|
} // import ../tests { inherit pkgs pkgsUnfree helpers; };
|
|
};
|
|
}
|