From 8a951b508c4b5e5b719d831095ec03a7075ac974 Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tomas.krizek@nic.cz>
Date: Mon, 25 Mar 2019 09:46:57 +0100
Subject: [PATCH] pytests: check minimum required gnutls version

Add a message to make extra requirements clear instead of throwing
a compilation error.

Closes #457
---
 tests/pytests/meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/pytests/meson.build b/tests/pytests/meson.build
index faef8f5e9..185f713d5 100644
--- a/tests/pytests/meson.build
+++ b/tests/pytests/meson.build
@@ -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',
-- 
GitLab