aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-06 22:47:48 +0200
committerTim D. Smith2015-04-06 21:01:22 -0700
commitc09fe5d24fc61309ac7a86f6d1020476ed0cada4 (patch)
tree16326b3b6ff0ee0475f867501dc0602ccc4cd506 /Library
parentbd5c757923a2fc66eb6a81256e0c2deedbde9ef0 (diff)
downloadhomebrew-c09fe5d24fc61309ac7a86f6d1020476ed0cada4.tar.bz2
rpl: test added
Closes #38416. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rpl.rb20
1 files changed, 13 insertions, 7 deletions
diff --git a/Library/Formula/rpl.rb b/Library/Formula/rpl.rb
index d84775daf..6ec132739 100644
--- a/Library/Formula/rpl.rb
+++ b/Library/Formula/rpl.rb
@@ -1,14 +1,20 @@
-require 'formula'
-
class Rpl < Formula
- homepage 'http://www.laffeycomputer.com/rpl.html'
- url 'ftp://ftp2.laffeycomputer.com/pub/current_builds/rpl-1.4.1.tar.gz'
- sha1 '6c67ecd2307f378b44b697411b0ab65bc5d2cdaa'
+ homepage "http://www.laffeycomputer.com/rpl.html"
+ url "ftp://ftp2.laffeycomputer.com/pub/current_builds/rpl-1.4.1.tar.gz"
+ sha256 "291055dc8763c855bab76142b5f7e9625392bcefa524b796bc4ddbcf941a1310"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ (testpath/"test").write "I like water."
+
+ system "#{bin}/rpl", "-v", "water", "beer", "test"
+ assert_equal "I like beer.", (testpath/"test").read
end
end