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:
Matt Sturgeon 2024-09-03 01:54:18 +01:00
parent fd923a3dd3
commit e48da949cf
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 95 additions and 0 deletions

View file

@ -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; };
};
}