aboutgitcodebugslistschat
path: root/test/lib/term
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-02-21 13:35:45 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-02-22 18:34:44 +0100
commitbe2a7898e9de236da7c42d1fb37a5a2017ac192b (patch)
tree76f84351d597a0a1c78699d77f1039f9c2788b82 /test/lib/term
parente17731ba97e32a52c797023b4563a261f71dd6aa (diff)
downloadpasst-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/term')
-rwxr-xr-xtest/lib/term10
1 files changed, 10 insertions, 0 deletions
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
}