Add window resizing test

This commit is contained in:
John Hood
2015-10-07 00:54:17 -04:00
parent 01749be642
commit 3c52091f4d
4 changed files with 139 additions and 3 deletions
+8 -1
View File
@@ -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