Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
a9413270
Commit
a9413270
authored
Sep 04, 2018
by
rna
Browse files
Remove iperf3.
parent
11d0bbf8
Pipeline
#2983
passed with stages
in 3 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker/entrypoint.sh
View file @
a9413270
...
...
@@ -64,33 +64,21 @@ until ping -c1 $TARGET &>/dev/null; do sleep 1; done
dur
=
$(
echo
"
$(
date
+%s.%N
)
-
$start
"
| bc
)
;
printf
"Reachable after %.6f seconds
\n
"
$dur
iperf3
--version
if
[[
"
$command
"
==
"sender"
||
"
$command
"
==
"time-sender"
]]
;
then
sleep
5
iperf3
-c
$TARGET
else
iperf3
-s
-1
echo
"Delaying
$command
"
sleep
10
fi
echo
"iperf3 for TCP done."
if
[
]
;
then
if
[[
"
$command
"
==
"sender"
||
"
$command
"
==
"time-sender"
]]
;
then
echo
"Delaying
$command
"
sleep
10
fi
start
=
$(
date
+%s.%N
)
;
echo
"Running PRRT with command:
\"
$command
$PRRT_PARAMS
\"
and link parameters:
\"
$NETEM_PARAMS
\"
"
start
=
$(
date
+%s.%N
)
;
echo
"Running PRRT with command:
\"
$command
$PRRT_PARAMS
\"
and link parameters:
\"
$NETEM_PARAMS
\"
"
#tc qdisc add dev $dev root netem $NETEM_PARAMS
trap
'echo "Caught SIGINT."; echo "$(ps -a)"; killall -SIGINT $command'
INT
LOG
=
$(
/prrt/
$command
$PRRT_PARAMS
2>&1
)
printf
"
$LOG
\n
"
echo
"Exit status:
$?
"
dur
=
$(
echo
"
$(
date
+%s.%N
)
-
$start
"
| bc
)
;
printf
"Done after %.6f seconds
\n
"
$dur
#tc qdisc del dev $dev root
fi
#tc qdisc add dev $dev root netem $NETEM_PARAMS
trap
'echo "Caught SIGINT."; echo "$(ps -a)"; killall -SIGINT $command'
INT
LOG
=
$(
/prrt/
$command
$PRRT_PARAMS
2>&1
)
printf
"
$LOG
\n
"
echo
"Exit status:
$?
"
dur
=
$(
echo
"
$(
date
+%s.%N
)
-
$start
"
| bc
)
;
printf
"Done after %.6f seconds
\n
"
$dur
#tc qdisc del dev $dev root
kill
$TSHARK_PID
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment