From be2a7898e9de236da7c42d1fb37a5a2017ac192b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 21 Feb 2022 13:35:45 +0100 Subject: 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 --- test/lib/term | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/lib/term') diff --git a/test/lib/term b/test/lib/term index cc6349f..e8a1d38 100755 --- a/test/lib/term +++ b/test/lib/term @@ -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 } -- cgit v1.2.3