Skip to content

Commit

Permalink
tests.testers.hasPkgConfigModules: add testcases for versionCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraud committed Apr 30, 2024
1 parent 9245f1b commit 039bd24
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/build-support/testers/hasPkgConfigModules/tests.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# cd nixpkgs
# nix-build -A tests.testers.hasPkgConfigModule
{ lib, testers, zlib, openssl, runCommand }:
{ lib, testers, miniz, zlib, openssl, runCommand }:

lib.recurseIntoAttrs {

miniz-versions-match = testers.hasPkgConfigModules {
package = miniz;
versionCheck = true;
};

miniz-versions-mismatch = testers.testBuildFailure (testers.hasPkgConfigModules {
package = miniz;
version = "1.2.3";
versionCheck = true;
});

zlib-has-zlib = testers.hasPkgConfigModules {
package = zlib;
moduleNames = [ "zlib" ];
Expand Down

0 comments on commit 039bd24

Please sign in to comment.