aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-02-01 21:49:46 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-02-01 21:49:46 +0100
commit5edf3ce72d68b8b65fecd44003af6d011b93185d (patch)
tree6d861277c9a795f41a28bc4e0bb26a080241bc9a
parent04fe24f17018a187e181288613a736cc8c2d14c8 (diff)
integration test instrumentalizes ptunnel
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-xtest/integration_test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration_test.sh b/test/integration_test.sh
index e261954..165436e 100755
--- a/test/integration_test.sh
+++ b/test/integration_test.sh
@@ -11,12 +11,12 @@ PTUNNEL_BIN=${SRC_ROOT}/src/ptunnel-ng
TUNNEL_TIMEOUT=25
timeout --foreground -k1 ${TUNNEL_TIMEOUT} \
valgrind --error-exitcode=1 --exit-on-first-error=yes \
- "${PTUNNEL_BIN}" -v4 -r127.0.0.1 -R3000 >/dev/null &
+ "${PTUNNEL_BIN}" -v4 -r127.0.0.1 -R3000 -l4000 >/tmp/ptunnel-server.log &
PTUNNEL_SERVER_PID=$!
timeout --foreground -k1 ${TUNNEL_TIMEOUT} \
valgrind --error-exitcode=1 --exit-on-first-error=yes \
- "${PTUNNEL_BIN}" -v4 -p127.0.0.1 -r127.0.0.1 -R3000 >/dev/null &
+ "${PTUNNEL_BIN}" -v4 -p127.0.0.1 -r127.0.0.1 -R3000 -l4000 >/tmp/ptunnel-client.log &
PTUNNEL_CLIENT_PID=$!
timeout --foreground -k1 ${TUNNEL_TIMEOUT} \
@@ -26,7 +26,7 @@ DATA_SERVER_PID=$!
sleep 3
DATA_TIMEOUT=20
timeout --foreground -k1 ${DATA_TIMEOUT} \
- sh -c "dd if=/dev/urandom bs=8192 | nc 127.0.0.1 3000" || true
+ sh -c "dd if=/dev/urandom bs=8192 | nc 127.0.0.1 4000" || true
wait ${PTUNNEL_SERVER_PID} || true
wait ${PTUNNEL_CLIENT_PID} || true