John Hood
1cad191b10
emulation-attributes.test: fix vt100 test failure
...
The failure only occurs in a Debian Sid schroot environment.
2017-03-01 23:16:26 -05:00
John Hood
936ee83d29
emulation-attributes.test: fix indentation
2017-03-01 23:16:26 -05:00
Keith Winstein
da206f621c
src/tests/.gitignore: add inpty
2017-02-06 23:32:32 -08:00
John Hood
278fd12ec1
More print-to-pipe error checking in tests.
2016-11-29 22:31:33 -05:00
John Hood
60c5b022f8
Check for assertion failures while testing.
2016-11-29 22:30:25 -05:00
Anders Kaseorg
4fe706a4d3
src/test/local.test: Set TERM=xterm
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2016-11-19 18:31:29 -05:00
Anders Kaseorg
f0f83f5c4e
src/tests/inpty.cc: Send the inner stderr to the outer stderr
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2016-11-19 18:31:29 -05:00
Anders Kaseorg
f7f741dab4
src/tests/inpty.cc: Skip the test on forkpty failures
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2016-11-13 16:13:25 -05:00
john hood
74469a7592
inpty.cc: Align configuration to be like mosh-server.cc.
...
This fixes a FreeBSD 11.0 build failure.
2016-11-12 23:25:56 -05:00
Anders Kaseorg
43251ea8db
Add a trivial test that the mosh script works without needing tmux
...
None of the previous tests even ran the mosh script unless tmux ≥ 1.8 is
installed. Thus ‘make check’ was “passing” on, e.g., RHEL 6 even though
its Perl is too old (5.10.1).
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2016-11-12 23:25:35 -05:00
John Hood
c9d0c9c0c5
tests/prediction-unicode.test: env -u is not POSIX
...
Seen to fail on OpenBSD 5.2.
2016-11-12 15:33:07 -05:00
John Hood
52d10cf211
Add a test for spinning on no-change screen updates
2016-11-06 06:15:42 -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
John Hood
4bc9e5c6ab
Handle printing to closed pipes better in tests.
...
Some systems do not deliver SIGPIPE to shell pipeline writers when the
downstream reader has exited. So, also check for errors from
/bin/printf. I fixed this for OpenBSD 6.0 but I think it will also
fix posh on Linux.
2016-11-06 06:09:49 -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
Jakub Wilk
42d686882f
Fix typos
2016-10-09 16:04:42 +02: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
e734d5e41a
tests: Work around tmux display corruption bug on OpenBSD.
...
See https://github.com/tmux/tmux/issues/539
2016-09-19 13:23:16 -04:00
John Hood
5619dd47bb
tests: fix incorrect usage of "trap ... SIGHUP"
...
Discovered with OpenBSD 6.0 /bin/sh
2016-09-19 13:23:16 -04:00
Keith Winstein
da7c87a822
Add test for nonce incrementing
2016-08-10 04:49:52 -07: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
e89c4fcb65
update .gitignores
2016-05-24 18:43:51 -04:00
John Hood
c027112a88
Coverity fixes: uncaught exceptions
2016-05-10 23:55:56 -04:00
John Hood
ec6980da96
GCC 6 fixes.
...
Should resolve https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811579
Resolves #719 .
2016-05-10 00:14:22 -04:00
John Hood
f30738e325
Update test documentation.
2016-04-07 20:26:08 -04:00
John Hood
bd2e8fc746
Improve test script performance, note issues with slow machines
2016-04-07 20:26:08 -04:00
John Hood
49a4106ae4
src/tests: clean up duplicate code
2016-03-30 23:52:19 -04:00
John Hood
6fd570f81f
Various fixes for Illumos Hipster 20151003.
2016-03-30 23:52:19 -04:00
Erick Matsen
8200d5bdf0
Typo fix in server-network-timeout.test
2016-01-16 17:50:45 -05:00
John Hood
e0f0905778
pty-deadlock.test: use background write, not non-blocking reads
...
Non-blocking reads turn out not to work so well on Cygwin
which has an older version of bash.
2016-01-12 23:09:24 -05:00
John Hood
e61b3bd014
Test changes for Cygwin compatibility.
2016-01-11 06:14:27 -05: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
1d71895ff4
Add support for back tab (CSI CBT), and forward tab (CSI CHT) too.
...
Resolves #539 .
2015-12-06 22:38:19 -05:00
john hood
8609f88207
mosh-server: Fix hang with ^S on OS X and FreeBSD.
...
Fixes #692 .
2015-12-06 19:09:42 -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
484677289d
Add test for rendering failures on text wrapping across frames
2015-12-06 17:47:11 -05:00
John Hood
65ced750e6
Test ASCII and ISO-8859-1 output.
2015-12-06 17:42:34 -05:00
John Hood
8681199957
Add VT100/color attributes tests.
2015-12-06 17:42:34 -05:00
John Hood
e13011f318
add test for cursor motion optimization
2015-12-06 17:42:34 -05:00
John Hood
b742e958b6
mosh-server: Support timeouts on lost connectivity to network client.
...
Closes #690 .
2015-11-24 02:36:08 -05:00
John Hood
0eb614809a
Add configurable support for Apple Common Crypto and Nettle libraries.
2015-10-16 19:00:42 -04:00
John Hood
db311f92f7
Replace OpenSSL base64 impl with a simple direct impl.
...
Unit tests, too.
2015-10-16 19:00:42 -04:00
John Hood
3c52091f4d
Add window resizing test
2015-10-14 23:28:21 -04:00
John Hood
01749be642
Add test for behavior at column 80.
2015-10-14 23:28:21 -04:00