tests,json: Skip tests for older GnuPG versions
* tests/json/t-json.c (main): Skip if version is not at least 2.2.0 -- In the past new tests often failed when a modern GPGME was used with old GnuPG's. This should avoid the hassle for packagers without the requirement that we test against old versions.
This commit is contained in:
parent
ca2e2b3d69
commit
e55e467d5f
@ -350,6 +350,14 @@ main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!check_gpg_version ("2.2.0"))
|
||||||
|
{
|
||||||
|
/* Lets not break too much or have to test all combinations */
|
||||||
|
printf ("Testsuite skipped. Minimum GnuPG version (2.2.0) "
|
||||||
|
"not found.\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
init_gpgme (GPGME_PROTOCOL_SPAWN);
|
init_gpgme (GPGME_PROTOCOL_SPAWN);
|
||||||
|
|
||||||
for (const char **test = tests; *test; test++)
|
for (const char **test = tests; *test; test++)
|
||||||
|
Loading…
Reference in New Issue
Block a user