1
0
Fork 0
mirror of https://passt.top/passt synced 2025-05-23 01:35:35 +02:00

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>
This commit is contained in:
Stefano Brivio 2022-02-21 13:35:45 +01:00
parent e17731ba97
commit be2a7898e9
7 changed files with 959 additions and 6 deletions
test/lib

View file

@ -176,6 +176,15 @@ pane_highlight() {
sleep 3
}
# pane_resize() - Resize a pane given its name
# $1: Pane name
# $2: Direction: U, D, L, or R
# $3: Adjustment in lines or columns
pane_resize() {
__pane_number=$(eval echo \$PANE_${1})
tmux resize-pane -${2} -t ${__pane_number} ${3}
}
# pane_run() - Issue a command in given pane name
# $1: Pane name
# $@: Command to issue
@ -201,6 +210,7 @@ pane_wait() {
case ${__l} in
'$ ' | '# ' | '# # ' | *"$ " | *"# ") return ;;
*" #[m " | *" #[m [K" | *"]# ["*) return ;;
*' $ [6n' | *' # [6n' ) return ;;
esac
do sleep 0.1 || sleep 1; done
}