]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - tests/common.sh
Simplify functions reporting errors to the client.
[tlsproxy/tlsproxy.git] / tests / common.sh
index d2b3459cee64123b75e81d65f3b80123c50e6aff..37c691beaf71bbb43480940b98dc58c9e17e1875 100644 (file)
@@ -34,6 +34,12 @@ abort() {
     stop_servers
     exit 1
 }
+tlsproxy_setup() {
+    "$srcdir/../src/tlsproxy-setup" >/dev/null 2>&1
+}
+tlsproxy_add() {
+    "$srcdir/../src/tlsproxy-add" "$1" "$srcdir/$2" >/dev/null 2>&1
+}
 tlsproxy() {
     ../src/tlsproxy -d2 "$@" >tlsproxy-log 2>&1 &
     pid_tlsproxy=$!