summaryrefslogtreecommitdiffhomepage
path: root/test/unit/check/tls.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit/check/tls.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/check/tls.py b/test/unit/check/tls.py
new file mode 100644
index 00000000..b878ff7d
--- /dev/null
+++ b/test/unit/check/tls.py
@@ -0,0 +1,13 @@
+import re
+import subprocess
+
+
+def check_openssl(unitd):
+ subprocess.check_output(['which', 'openssl'])
+
+ output = subprocess.check_output(
+ [unitd, '--version'], stderr=subprocess.STDOUT
+ )
+
+ if re.search('--openssl', output.decode()):
+ return True