Commit Graph

7 Commits

Author SHA1 Message Date
sternenseemann
af60e68744 testers.hasPkgConfigModules: allow checking multiple pkg-config mods
This is very useful in conjunction with meta.pkgConfigModules, as the
new tester can use the list provided by this meta attribute as a default
value for moduleNames, making its usage in passthru.tests very
convenient.

For backwards compatibility, a shim under the old name is maintained
with a warning.
2023-08-08 19:16:48 +02:00
Adam Joseph
07c9ae7a65 test-defaultPkgConfigPackages.nix: filter out recurseForDerivations
The command at the top of this file fails to evaluate:

```
$ nix-build -A tests.pkg-config.defaultPkgConfigPackages
in job ‘nixpkgs.tests.pkg-config.defaultPkgConfigPackages.tests-combined.x86_64-linux’:
error: pkg-config module `recurseForDerivations` is not defined to be a derivation. Please check the attribute value for `recurseForDerivations` in `pkgs/top-level/pkg-config-packages.nix` in Nixpkgs.
```

This is also causing eval errors on Hydra:

  https://hydra.nixos.org/jobset/nixos/pr-209870-gcc-external-bootstrap#tabs-errors

Let's filter out `recurseForDerivations=true` from the attrset,
since it exists mainly as a flag to signal special handling when
recursing.
2023-03-17 20:44:31 -07:00
Robert Hensing
9520feaf76 Revert "Revert "tests.defaultPkgConfigPackages: Add recurseIntoAttrs""
This reverts commit deed04ab81.
2023-01-31 15:12:04 +01:00
K900
deed04ab81 Revert "tests.defaultPkgConfigPackages: Add recurseIntoAttrs"
This reverts commit f192e96d07.
2023-01-30 21:02:30 +03:00
Robert Hensing
b6bec17eb9 testers.hasPkgConfigModule: Extract and add tests, docs 2023-01-30 00:35:34 +01:00
Robert Hensing
f192e96d07 tests.defaultPkgConfigPackages: Add recurseIntoAttrs 2023-01-30 00:35:34 +01:00
Robert Hensing
3be7ea8c89 top-level/pkg-config: Make tests easy to find 2023-01-29 09:51:55 +01:00