Commit Graph

24 Commits

Author SHA1 Message Date
John Hood 7c68667bc0 Explicitly set tmux window size in tests.
Recent versions of tmux master gave us an 80x23 window.  tmux has been
fixed to default to 80x24, and also to allow setting window sizes in
control mode.  These flags fortunately do not conflict with older
versions tmux.  So we use them to avoid problems going forward.
2017-05-28 21:19:03 -04:00
John Hood d15d342df3 Tests: symlink to tmux sockets
This makes it easier to attach a second client to inspect a test.
2017-05-28 19:27:39 -04:00
John Hood 2f89ac0ac7 Make tmux version check work with tmux master. 2017-05-28 13:19:12 -04:00
John Hood 9f54cc76d2 Detect broken tmux in tests
This works around Debian kfreebsd build failures.
2017-05-21 12:49:18 -04:00
John Hood 3b1984f9f8 Make tests work with OpenBSD's unversioned tmux
This tests for OpenBSD 6.x or later.  We could likely extend the
test to much older OpenBSD versions, but not without OS installs
and testing.
2017-04-24 22:40:30 -04:00
John Hood 654f269917 Make tests detect UTF-8 locale with a helper executable
This uses the same utility function that mosh-client/mosh-server do.
This resolves portability issues with the 'locale' command.
This fixes OpenBSD 6.0 and probably Haiku builds.
2017-04-24 22:38:47 -04:00
John Hood 0fc950bd8a Ensure a UTF-8 locale is available for tests
Fixes Debian sid schroot build.

Also add build deps required for full testing:
tmux,  less (for window-resize.test)
2017-03-01 23:16:26 -05:00
John Hood 2e816205f7 window-resize.test: use a known-present file
/etc/services may not be present in a Debian sid schroot.
Also make $srcdir available to test scripts.
2017-03-01 23:16:26 -05:00
John Hood 60c5b022f8 Check for assertion failures while testing. 2016-11-29 22:30:25 -05:00
John Hood dc292dcdaa Test for spinning Mosh 2016-11-06 06:15:42 -05:00
John Hood 9ffbeddbc8 Put spin debug under -vv flag, and add to mosh-client 2016-11-06 06:15:41 -05:00
John Hood 444eae1fc4 Add tests to run Mosh repeatedly. 2016-11-06 06:15:41 -05:00
Anders Kaseorg b76d1bd526 e2e-test: Add newline to “unknown test type argument” error
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-04 03:15:03 -04:00
Anders Kaseorg 8a8f2b29ca Fix most shell hygiene issues found by shellcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-04 03:15:03 -04:00
John Hood 477729b315 tests: improve robustness
Replace some blind timeouts with actual synchronization.
Improve performance on some slow tests.
Tweak some of the remaining timeouts.

This still isn't good enough to get 'make -j9 check'
working reliably on Cygwin for me; I think some Cygwin/
Windows scheduling issues remain.
2016-09-20 06:25:43 -04:00
John Hood 8211b88420 Don't use user's .tmux.conf
It may contain configuration that breaks our testing.
2016-07-21 01:19:23 -04:00
John Hood 6fd570f81f Various fixes for Illumos Hipster 20151003. 2016-03-30 23:52:19 -04:00
John Hood 19f214e46d Remove AM_TESTS_REDIRECT hack; use VERBOSE=1 instead. 2015-12-24 22:27:17 -05:00
John Hood 2ac3bbeb9b Fix prediction unicode bug. Make all Cell members private.
Fixes #702.
2015-12-24 22:27:17 -05:00
John Hood 44f9cca396 e2e-test: indentation cleanup, whitespace only 2015-12-06 17:47:11 -05:00
John Hood bc1e3cd541 e2e-test: Cleanup tmux sockets. 2015-12-06 17:47:11 -05:00
John Hood 992fec1f30 e2e-test: Add check for Instruction verification failures. 2015-12-06 17:47:11 -05:00
John Hood 3c52091f4d Add window resizing test 2015-10-14 23:28:21 -04:00
John Hood 307b241f0d End to end test suite for Mosh sessions.
For original messy development history, see
https://github.com/cgull/mosh/tree/localhost
or
https://github.com/cgull/mosh/commit/e7feed48a4a271e2977f714f58acfa04cdaa5cca
2015-10-14 23:27:29 -04:00