mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 11:45:28 +02:00
tests/package-options: init
The test ensures "package" options use a "literalExpression" in their defaultText; i.e. it validates `lib.mkPackageOption` was used to build the package options. All options whose `default` is a derivation are covered by the test, other than submodule sub-options.
This commit is contained in:
parent
fd923a3dd3
commit
e48da949cf
2 changed files with 95 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
|||
makeNixvimWithModule,
|
||||
...
|
||||
}:
|
||||
let
|
||||
evaluatedNixvim = helpers.modules.evalNixvim { check = false; };
|
||||
in
|
||||
{
|
||||
checks = {
|
||||
extra-args-tests = import ../tests/extra-args.nix {
|
||||
|
@ -43,6 +46,8 @@
|
|||
maintainers = import ../tests/maintainers.nix { inherit pkgs; };
|
||||
|
||||
generated = pkgs.callPackage ../tests/generated.nix { };
|
||||
|
||||
package-options = pkgs.callPackage ../tests/package-options.nix { inherit evaluatedNixvim; };
|
||||
} // import ../tests { inherit pkgs pkgsUnfree helpers; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue