aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-11-14 13:55:09 +0000
committerAndre Heinecke <[email protected]>2018-11-14 13:55:09 +0000
commite55e467d5ffb32c428566a876616d309ef2d15cd (patch)
tree2b37bad5c9d8f861c55dd0aabe2a6c284e200513
parenttests,json: Suffix .json to test pattern (diff)
downloadgpgme-e55e467d5ffb32c428566a876616d309ef2d15cd.tar.gz
gpgme-e55e467d5ffb32c428566a876616d309ef2d15cd.zip
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.
-rw-r--r--tests/json/t-json.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/json/t-json.c b/tests/json/t-json.c
index 26f870ce..07b99847 100644
--- a/tests/json/t-json.c
+++ b/tests/json/t-json.c
@@ -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);
for (const char **test = tests; *test; test++)