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/setup | |
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/setup')
-rwxr-xr-x | test/lib/setup | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/lib/setup b/test/lib/setup index df21655..b076eff 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -327,12 +327,31 @@ teardown_demo_passt() { pane_wait GUEST pane_wait HOST pane_wait PASST + + tmux kill-pane -a -t 0 + tmux send-keys -t 0 "C-c" } -# teardown_demo_pasta() - Exit namespace from remaining pane +# teardown_demo_pasta() - Exit perf and namespace from remaining pane teardown_demo_pasta() { + tmux send-keys -t ${PANE_NS} "q" + pane_wait NS tmux send-keys -t ${PANE_NS} "C-d" pane_wait NS + + tmux kill-pane -a -t 0 + tmux send-keys -t 0 "C-c" +} + +# teardown_demo_podman() - Exit namespaces +teardown_demo_podman() { + tmux send-keys -t ${PANE_NS1} "C-d" + tmux send-keys -t ${PANE_NS2} "C-d" + pane_wait NS1 + pane_wait NS2 + + tmux kill-pane -a -t 0 + tmux send-keys -t 0 "C-c" } # setup() - Run setup_*() functions |