diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-02-21 13:35:45 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-02-22 18:34:44 +0100 |
commit | be2a7898e9de236da7c42d1fb37a5a2017ac192b (patch) | |
tree | 76f84351d597a0a1c78699d77f1039f9c2788b82 /test/lib/layout | |
parent | e17731ba97e32a52c797023b4563a261f71dd6aa (diff) | |
download | passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.tar passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.tar.gz passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.tar.bz2 passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.tar.lz passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.tar.xz passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.tar.zst passt-be2a7898e9de236da7c42d1fb37a5a2017ac192b.zip |
test: Add demo for Podman with pasta
...showing setup steps, some peculiarities as --net option, and a
general side-to-side comparison with slirp4netns(1), including
"quick" TCP and UDP throughput and latency benchmarks.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/layout')
-rw-r--r-- | test/lib/layout | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/test/lib/layout b/test/lib/layout index 7802dac..2d6b197 100644 --- a/test/lib/layout +++ b/test/lib/layout @@ -207,7 +207,6 @@ layout_two_guests() { layout_demo_pasta() { sleep 3 - tmux kill-pane -a -t 0 cmd_write 0 cd ${BASEPATH} cmd_write 0 clear sleep 1 @@ -244,7 +243,6 @@ layout_demo_pasta() { layout_demo_passt() { sleep 3 - tmux kill-pane -a -t 0 cmd_write 0 cd ${BASEPATH} cmd_write 0 clear sleep 1 @@ -276,3 +274,39 @@ layout_demo_passt() { sleep 1 } + +# layout_demo_podman() - Four panes for pasta demo with Podman +layout_demo_podman() { + sleep 3 + + cmd_write 0 cd ${BASEPATH} + cmd_write 0 clear + sleep 1 + cmd_write 0 clear + + tmux split-window -v -l '65%' -t passt_test + tmux split-window -h -t passt_test + tmux split-window -h -l '42%' -t passt_test:1.0 + + PANE_HOST=0 + PANE_INFO=1 + PANE_NS1=2 + PANE_NS2=3 + + get_info_cols + + tmux pipe-pane -O -t ${PANE_NS1} "cat >> ${LOGDIR}/pane_ns1.log" + tmux select-pane -t ${PANE_NS1} -T "Podman with slirp4netns" + + tmux pipe-pane -O -t ${PANE_NS2} "cat >> ${LOGDIR}/pane_ns2.log" + tmux select-pane -t ${PANE_NS2} -T "Podman with pasta" + + tmux send-keys -l -t ${PANE_INFO} 'while cat /tmp/.passt_test_log_pipe; do :; done' + tmux send-keys -t ${PANE_INFO} -N 100 C-m + tmux select-pane -t ${PANE_INFO} -T "" + + tmux pipe-pane -O -t ${PANE_HOST} "cat >> ${LOGDIR}/pane_host.log" + tmux select-pane -t ${PANE_HOST} -T "host" + + sleep 1 +} |