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>
This commit is contained in:
Anders Kaseorg
2016-11-08 18:07:45 -05:00
committed by John Hood
parent 417907c71d
commit 43251ea8db
3 changed files with 118 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
set -eu
out=$(./inpty ../../scripts/mosh --client="../frontend/mosh-client" --server="$PWD/../frontend/mosh-server" --local --bind-server=127.0.0.1 127.0.0.1 -- printf 'he%s\n' llo)
case "$out" in
*hello*) exit 0;;
*) exit 1;;
esac