tests,json: Move version check into t-json
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 15 Nov 2018 09:31:22 +0000 (10:31 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 15 Nov 2018 09:31:22 +0000 (10:31 +0100)
commit40d962b43a183070ba8602cac1e83f2292ebf2c3
tree5db1ef6f70b2856350d3c98bb8c9785c758304ea
parentd3dae4a445d950c94c952ddf54e534ef71675bd1
tests,json: Move version check into t-json

* tests/gpg/t-support.h (check_gpg_version, compare_versions),
(parse_version_string, parse_version_number): Remove version
check code.
* tests/json/t-json.c (check_gpg_version, compare_versions),
(parse_version_string, parse_version_number): Add.
--

t-support header was not a good place for this. It should
go into a library e.g. gpgrt in the future. For now we
can keep it close to where it is needed.
tests/gpg/t-support.h
tests/json/t-json.c