]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests: check minimum required gnutls version
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 25 Mar 2019 08:46:57 +0000 (09:46 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Fri, 5 Apr 2019 16:44:59 +0000 (16:44 +0000)
Add a message to make extra requirements clear instead of throwing
a compilation error.

Closes #457

tests/pytests/meson.build

index faef8f5e9fd52c4288fd94097d4974d979710199..185f713d5daef744b11de921289d94a6306d774f 100644 (file)
@@ -9,6 +9,10 @@ py3_deps += [
   ['xdist', 'pytest-xdist (for pytests)'],
 ]
 
+if gnutls.version().version_compare('<3.6.4')
+  error('pytests require GnuTLS >= 3.6.4')
+endif
+
 # compile tlsproxy
 tlsproxy_src = files([
   'proxy/tlsproxy.c',