mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
testers.hasCmakeConfigModules: init
This commit is contained in:
parent
6e6bb38fd2
commit
11291afcb3
4 changed files with 114 additions and 0 deletions
|
@ -40,6 +40,26 @@ If the `moduleNames` argument is omitted, `hasPkgConfigModules` will use `meta.p
|
|||
|
||||
:::
|
||||
|
||||
## `hasCmakeConfigModules` {#tester-hasCmakeConfigModules}
|
||||
|
||||
Checks whether a package exposes a given list of `*config.cmake` modules.
|
||||
Note the moduleNames used in cmake find_package are case sensitive.
|
||||
|
||||
:::{.example #ex-hascmakeconfigmodules}
|
||||
|
||||
# Check that `*config.cmake` modules are exposed using explicit module names
|
||||
|
||||
```nix
|
||||
{
|
||||
passthru.tests.cmake-config = testers.hasCmakeConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
moduleNames = [ "Foo" ];
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
## `lycheeLinkCheck` {#tester-lycheeLinkCheck}
|
||||
|
||||
Check a packaged static site's links with the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee).
|
||||
|
|
|
@ -1694,6 +1694,12 @@
|
|||
"ex-haspkgconfigmodules-explicitmodules": [
|
||||
"index.html#ex-haspkgconfigmodules-explicitmodules"
|
||||
],
|
||||
"tester-hasCmakeConfigModules": [
|
||||
"index.html#tester-hasCmakeConfigModules"
|
||||
],
|
||||
"ex-hascmakeconfigmodules": [
|
||||
"index.html#ex-hascmakeconfigmodules"
|
||||
],
|
||||
"tester-lycheeLinkCheck": [
|
||||
"index.html#tester-lycheeLinkCheck"
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue