modules/test: move test derivation to an option
Introduced the `test.derivation` read-only option.
This commit is contained in:
parent
851edc8df1
commit
cbd1003d9d
7 changed files with 114 additions and 91 deletions
|
|
@ -6,12 +6,6 @@
|
|||
}:
|
||||
{
|
||||
flake.lib = lib.genAttrs config.systems (
|
||||
lib.flip withSystem (
|
||||
{ pkgs, config, ... }:
|
||||
import ../lib {
|
||||
inherit pkgs lib;
|
||||
inherit (config.legacyPackages) makeNixvimWithModule;
|
||||
}
|
||||
)
|
||||
lib.flip withSystem ({ pkgs, ... }: import ../lib { inherit pkgs lib; })
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,44 +10,35 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
checks =
|
||||
{
|
||||
extra-args-tests = import ../tests/extra-args.nix {
|
||||
inherit pkgs;
|
||||
inherit makeNixvimWithModule;
|
||||
};
|
||||
checks = {
|
||||
extra-args-tests = import ../tests/extra-args.nix {
|
||||
inherit pkgs;
|
||||
inherit makeNixvimWithModule;
|
||||
};
|
||||
|
||||
extend = import ../tests/extend.nix { inherit pkgs makeNixvimWithModule; };
|
||||
extend = import ../tests/extend.nix { inherit pkgs makeNixvimWithModule; };
|
||||
|
||||
extra-files = import ../tests/extra-files.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;
|
||||
};
|
||||
enable-except-in-tests = import ../tests/enable-except-in-tests.nix {
|
||||
inherit pkgs makeNixvimWithModule;
|
||||
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
|
||||
};
|
||||
|
||||
no-flake = import ../tests/no-flake.nix {
|
||||
inherit system;
|
||||
inherit (self.lib.${system}.check) mkTestDerivationFromNvim;
|
||||
nixvim = "${self}";
|
||||
};
|
||||
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;
|
||||
};
|
||||
lib-tests = import ../tests/lib-tests.nix {
|
||||
inherit pkgs helpers;
|
||||
inherit (pkgs) lib;
|
||||
};
|
||||
|
||||
maintainers = import ../tests/maintainers.nix { inherit pkgs; };
|
||||
maintainers = import ../tests/maintainers.nix { inherit pkgs; };
|
||||
|
||||
generated = pkgs.callPackage ../tests/generated.nix { };
|
||||
}
|
||||
// (import ../tests {
|
||||
inherit
|
||||
pkgs
|
||||
pkgsUnfree
|
||||
helpers
|
||||
makeNixvimWithModule
|
||||
;
|
||||
});
|
||||
generated = pkgs.callPackage ../tests/generated.nix { };
|
||||
} // import ../tests { inherit pkgs pkgsUnfree helpers; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue