From 2810f9046aa84024e5c3a4a70d122cb50597b2ae Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 9 Sep 2011 18:01:54 +0000 Subject: [PATCH] needs to send more than just one packet each way --- tests/simulator.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/simulator.sh b/tests/simulator.sh index 7628e7aa7..183f9bba6 100755 --- a/tests/simulator.sh +++ b/tests/simulator.sh @@ -15,6 +15,7 @@ port() { } ids="" +ports="" for i in $(seq 1 1000); do callid=`uuid` test -z "$callid" && exit 1 @@ -30,8 +31,12 @@ for i in $(seq 1 1000); do echo version | pipe echo status | pipe - echo foo > /dev/udp/${src_rel/ //} - echo bar > /dev/udp/${dst_rel/ //} + src_path=${src_rel/ //} + dst_path=${dst_rel/ //} + ports="$ports $src_path $dst_path" + for port in $ports; do + echo foobar > /dev/udp/$port + done ids="$ids $callid" done