mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Add test for xenl terminals.
This commit is contained in:
parent
c5e2532b67
commit
026450c1a8
@ -1,7 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# new-session without clients should be the right size
|
||||
|
||||
PATH=/bin:/usr/bin
|
||||
TERM=screen
|
||||
|
||||
@ -19,6 +17,7 @@ EOF
|
||||
$TMUX -f$TMP start </dev/null || exit 1
|
||||
sleep 1
|
||||
$TMUX lsw -aF '#{session_name},#{window_name}'|sort >$TMP || exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
cat <<EOF|cmp -s $TMP - || exit 1
|
||||
bar,bar0
|
||||
bar,bar1
|
||||
@ -27,7 +26,6 @@ foo,foo0
|
||||
foo,foo1
|
||||
foo,foo2
|
||||
EOF
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
cat <<EOF >$TMP
|
||||
new -sfoo -nfoo0
|
||||
@ -40,6 +38,7 @@ EOF
|
||||
$TMUX -f$TMP start </dev/null || exit 1
|
||||
sleep 1
|
||||
$TMUX lsw -aF '#{session_name},#{window_name}'|sort >$TMP || exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
cat <<EOF|cmp -s $TMP - || exit 1
|
||||
bar,bar0
|
||||
bar,bar1
|
||||
@ -48,6 +47,5 @@ foo,foo0
|
||||
foo,foo1
|
||||
foo,foo2
|
||||
EOF
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
29
regress/xenl-terminal.sh
Normal file
29
regress/xenl-terminal.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/bin:/usr/bin
|
||||
TERM=screen
|
||||
|
||||
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
|
||||
TMUX="$TEST_TMUX -Ltest"
|
||||
$TMUX kill-server 2>/dev/null
|
||||
TMUX2="$TEST_TMUX -Ltest2"
|
||||
$TMUX2 kill-server 2>/dev/null
|
||||
|
||||
TMP=$(mktemp)
|
||||
trap "rm -f $TMP" 0 1 15
|
||||
|
||||
$TMUX2 -f/dev/null new -d || exit 1
|
||||
$TMUX2 set -as terminal-overrides ',*:xenl@' || exit 1
|
||||
$TMUX2 set -g status-right 'RRR' || exit 1
|
||||
$TMUX2 set -g status-left 'LLL' || exit 1
|
||||
$TMUX2 set -g window-status-current-format 'WWW' || exit 1
|
||||
$TMUX -f/dev/null new -x20 -y2 -d "$TMUX2 attach" || exit 1
|
||||
sleep 1
|
||||
$TMUX capturep -p|tail -1 >$TMP || exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
$TMUX2 kill-server 2>/dev/null
|
||||
cat <<EOF|cmp -s $TMP - || exit 1
|
||||
LLLWWW RR
|
||||
EOF
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user