From 94b7d1f951f5707dfc47c3ab48c0889af8b0ed9d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 28 Jul 2013 14:45:39 +0200 Subject: [PATCH] tests: Add tlsproxy_setup() helper function. --- tests/common.sh | 3 +++ tests/tests-normal.sh | 2 +- tests/tests-passthrough.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.45.2