tests,gpg: Add version check hlp to t-support
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 14 Nov 2018 13:50:57 +0000 (14:50 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 14 Nov 2018 13:50:57 +0000 (14:50 +0100)
commit5b61c092e7444749b08e39ac5aa9fb0818e1a076
tree9368559f8f51030786e3ff5816ed57b3bb8c478e
parent9933641cce595ba308d0f3a1f3ae8f13a9743dd1
tests,gpg: Add version check hlp to t-support

* t-support.h (parse_version_number, parse_version_string)
(compare_versions): New. Copy&Paste from src/version.c
(check_gpg_version): New helper to check for a gpg version.

--
This should make it easier to write tests that e.g.
rely on modern gnupg features.
tests/gpg/t-support.h