]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
tests: Add tlsproxy_setup() helper function.
authorSimon Ruderich <simon@ruderich.org>
Sun, 28 Jul 2013 12:45:39 +0000 (14:45 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 28 Jul 2013 12:45:39 +0000 (14:45 +0200)
tests/common.sh
tests/tests-normal.sh
tests/tests-passthrough.sh

index d2b3459cee64123b75e81d65f3b80123c50e6aff..eb60743d89a21087bd6e1fff1e7b9699037f9099 100644 (file)
@@ -34,6 +34,9 @@ abort() {
     stop_servers
     exit 1
 }
+tlsproxy_setup() {
+    "$srcdir/../src/tlsproxy-setup" >/dev/null 2>/dev/null
+}
 tlsproxy() {
     ../src/tlsproxy -d2 "$@" >tlsproxy-log 2>&1 &
     pid_tlsproxy=$!
index 5967c44ba1ff6485d8ccf2dff9f3e3cff2fa1ba7..3b9f9f38d670f447df9bb3d93719aa5bc31497a7 100755 (executable)
@@ -24,7 +24,7 @@ test "x$srcdir" = x && srcdir=.
 
 # Create necessary files.
 cleanup
-"$srcdir/../src/tlsproxy-setup" >/dev/null 2>/dev/null
+tlsproxy_setup
 
 # Normal tests.
 tlsproxy 4711
index 55846489e52c9f52bf827301615b7270b2944403..2e0f90e30a3c0aececee5506078638849654b379 100755 (executable)
@@ -24,7 +24,7 @@ test "x$srcdir" = x && srcdir=.
 
 # Create necessary files.
 cleanup
-"$srcdir/../src/tlsproxy-setup" >/dev/null 2>/dev/null
+tlsproxy_setup
 
 # Normal tests.
 tlsproxy -u 4711