diff options
author | nicoo <nicoo@mur.at> | 2024-04-30 20:09:27 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2024-04-30 22:24:05 +0000 |
commit | 039bd24f54e8c728de5be236bba73b2ab8862e6d (patch) | |
tree | 2be6d291682209cf1b6ec831670d67bcf179ad09 | |
parent | 9245f1b706f31de8421f0d264c82f4f835a4636d (diff) |
tests.testers.hasPkgConfigModules: add testcases for `versionCheck`
-rw-r--r-- | pkgs/build-support/testers/hasPkgConfigModules/tests.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/build-support/testers/hasPkgConfigModules/tests.nix b/pkgs/build-support/testers/hasPkgConfigModules/tests.nix index 96569498fb152..73fe7ecf43a69 100644 --- a/pkgs/build-support/testers/hasPkgConfigModules/tests.nix +++ b/pkgs/build-support/testers/hasPkgConfigModules/tests.nix @@ -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" ]; |