Add window resizing test
This commit is contained in:
+8
-1
@@ -135,6 +135,8 @@ for i in $test_args; do
|
||||
server_tests="$server_tests $i";;
|
||||
verify|same|different)
|
||||
compare_tests="$compare_tests $i";;
|
||||
tmux)
|
||||
tmux=1;;
|
||||
client)
|
||||
client=1;;
|
||||
post)
|
||||
@@ -152,6 +154,11 @@ if [ -n "$client" ]; then
|
||||
client_wrapper="${test_script} client"
|
||||
fi
|
||||
|
||||
tmux_stdin="${srcdir}/hold-stdin"
|
||||
if [ -n "$tmux" ]; then
|
||||
tmux_stdin="${test_script} tmux"
|
||||
fi
|
||||
|
||||
for run in $server_tests; do
|
||||
log "Running server test %s.\n" "$run"
|
||||
# XXX need to quote special chars in server pathname here somehow
|
||||
@@ -163,7 +170,7 @@ for run in $server_tests; do
|
||||
# Actually execute code under test
|
||||
# XXX tmux 1.8 requires shell command as a single arg; once we move to 2.0, undo these quotes
|
||||
# XXX this ignores $TMPDIR, because it results in an overlong pathname on OS X
|
||||
if ! ${srcdir}/hold-stdin tmux -S "/tmp/.tmux-mosh-test-$$" -C new-session "${srcdir}/print-exitstatus ${client_wrapper} ${sut} \"${srcdir}/e2e-test-server\" \"${PWD}/${test_dir}/${run}\" \"${PWD}/${test_script} ${testarg}\"" > "${test_dir}/${run}.tmux.log"; then
|
||||
if ! ${tmux_stdin} tmux -S "/tmp/.tmux-mosh-test-$$" -C new-session "${srcdir}/print-exitstatus ${client_wrapper} ${sut} \"${srcdir}/e2e-test-server\" \"${PWD}/${test_dir}/${run}\" \"${PWD}/${test_script} ${testarg}\"" > "${test_dir}/${run}.tmux.log"; then
|
||||
test_error "tmux failure on test %s\n" "$run"
|
||||
fi
|
||||
# Check for mosh failures
|
||||
|
||||
Reference in New Issue
Block a user