Browse Source

units/ttlsxx0001: unit for basic tests with tls

- start kamailio with tls enabled
Daniel-Constantin Mierla 5 years ago
parent
commit
2ff054fc7e
2 changed files with 24 additions and 0 deletions
  1. 7 0
      units/ttlsxx0001/README.md
  2. 17 0
      units/ttlsxx0001/ttlsxx0001.sh

+ 7 - 0
units/ttlsxx0001/README.md

@@ -0,0 +1,7 @@
+# TLS configuration - Basic Tests #
+
+Summary: tls configiguration - basic test
+
+Following tests are done:
+
+  * run kamailio with default config and -A WITH_TLS

+ 17 - 0
units/ttlsxx0001/ttlsxx0001.sh

@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. ../../etc/config
+. ../../libs/utils
+
+echo
+echo "--- start with default config and -A WITH_TLS"
+${KAMBIN} -P ${KAMPID} -w ${KAMRUN} -Y ${KAMRUN} -a no -A WITH_TLS -ddd -E 2>&1 | tee /tmp/kamailio-ttlsxx0001.log &
+ret=$?
+sleep 1
+timeout 3 openssl s_client -connect 127.0.0.1:5061 -showcerts
+kill_pidfile ${KAMPID}
+if [ ! "$ret" -eq 0 ] ; then
+    exit $ret
+fi
+
+exit $ret