tests.testers.hasPkgConfigModules: add testcases for versionCheck
This commit is contained in:
parent
9245f1b706
commit
039bd24f54
1 changed files with 12 additions and 1 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue