From: Simon Ruderich Date: Sun, 28 Jul 2013 12:45:39 +0000 (+0200) Subject: tests: Add tlsproxy_setup() helper function. X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=94b7d1f951f5707dfc47c3ab48c0889af8b0ed9d tests: Add tlsproxy_setup() helper function. --- diff --git a/tests/common.sh b/tests/common.sh index d2b3459..eb60743 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -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=$! diff --git a/tests/tests-normal.sh b/tests/tests-normal.sh index 5967c44..3b9f9f3 100755 --- a/tests/tests-normal.sh +++ b/tests/tests-normal.sh @@ -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 diff --git a/tests/tests-passthrough.sh b/tests/tests-passthrough.sh index 5584648..2e0f90e 100755 --- a/tests/tests-passthrough.sh +++ b/tests/tests-passthrough.sh @@ -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