From 60bc5f42ab3e2678892bcb27912c74d9d3b02ba7 Mon Sep 17 00:00:00 2001 From: Bruce Wang Date: Fri, 10 Nov 2017 02:16:56 +1100 Subject: [PATCH] tintin 2.01.3 add a test Closes #20465. Signed-off-by: ilovezfs --- Formula/tintin.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Formula/tintin.rb b/Formula/tintin.rb index 2fab688c4f..c185d3564e 100644 --- a/Formula/tintin.rb +++ b/Formula/tintin.rb @@ -1,8 +1,8 @@ class Tintin < Formula desc "MUD client" homepage "https://tintin.sourceforge.io/" - url "https://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.2/tintin-2.01.2.tar.gz" - sha256 "01e11e3cded48ff686b2ea16e767acf1f6b5ea326551ecff091552e89f4a038e" + url "https://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.01.3/tintin-2.01.3.tar.gz" + sha256 "c55215ff4a73d4c651a8ecfdc323f981b62262338e0180bf5bdc95bbc1aefe2d" bottle do cellar :any @@ -26,4 +26,12 @@ class Tintin < Formula "install" end end + + test do + require "pty" + (testpath/"input").write("#end {bye}\n") + PTY.spawn(bin/"tt++", "-G", "input") do |r, _w, _pid| + assert_match "Goodbye", r.read + end + end end