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
John Hood
fb76563d33
Add multiline-scroll regression test
2015-10-14 23:28:21 -04:00
John Hood
14ae25ee2a
Add test for unicode combining fallback assert, issue 667
2015-10-14 23:28:12 -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
Anders Kaseorg
cd2ae36f36
Mark local functions as static
...
This helps to catch unused functions like the former mosh_read_line,
allows the compiler to make better inlining decisions, and reduces the
binary size a bit.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2015-06-04 23:52:03 -04:00
Geoffrey Thomas
aeffb71cfc
Style cleanup: "foo &x", not "foo& x"
2015-06-04 23:47:32 -04:00
Geoffrey Thomas
5721b392ab
Make all exception classes inherit from std::exception
...
This refactors out a very common pattern of formatting "%s: %s" with
e.function.c_str() and strerror( e.the_errno ) into just the what()
method of NetworkException. It's also a prerequisite for making cleaner
public API for any exceptions we throw, and allows us to more easily
get exceptions passed back to us to handle.
2015-06-04 23:47:31 -04:00
Anders Kaseorg
7b9e548aa0
Run tests with ‘make check’
...
The configure --enable-tests flag is no longer needed because
check_PROGRAMS are not built until you run ‘make check’.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
a611ef5821
tests: Default to quiet
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keith Winstein
57c4904ed8
Switch to OpenSSL base64 routines
2012-07-20 16:00:21 -04:00
Massimo Gengarelli
49fc21c8a3
Catch by const reference (remove Eclipse warnings)
...
(closes #245 )
2012-04-29 02:24:31 -04:00