From 9c0940bb4caad97ff8b828b44c8bee59a02ffcb5 Mon Sep 17 00:00:00 2001 From: Chilledheart Date: Wed, 15 Oct 2014 10:24:54 +0800 Subject: mosh: add a simple test case Closes #33095. Signed-off-by: Jack Nagel --- Library/Formula/mobile-shell.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') diff --git a/Library/Formula/mobile-shell.rb b/Library/Formula/mobile-shell.rb index f8c390845..26d6bffbb 100644 --- a/Library/Formula/mobile-shell.rb +++ b/Library/Formula/mobile-shell.rb @@ -33,4 +33,9 @@ class MobileShell < Formula system "make", "check" if build.with? "check" system "make", "install" end + + test do + ENV["TERM"]="xterm" + system "#{bin}/mosh-client", "-c" + end end -- cgit v1.2.3