aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-18 11:53:34 +0200
committerXu Cheng2015-04-18 22:15:40 +0800
commit4b4636b68ae0279bfa29f77da54369a662f899d3 (patch)
tree437bd5e1847514db0aadf7bbd232b6d005ee955f /Library
parent17b6541c6a8c7ad0e5e23ffb9fbe712fe654e588 (diff)
downloadhomebrew-4b4636b68ae0279bfa29f77da54369a662f899d3.tar.bz2
hexedit: test added
Closes #38785. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/hexedit.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/hexedit.rb b/Library/Formula/hexedit.rb
index e59d79613..b7e96fcc0 100644
--- a/Library/Formula/hexedit.rb
+++ b/Library/Formula/hexedit.rb
@@ -1,14 +1,17 @@
-require 'formula'
-
class Hexedit < Formula
- homepage 'http://rigaux.org/hexedit.html'
- url 'http://rigaux.org/hexedit-1.2.13.src.tgz'
- sha1 '1acb7ca37063d9f4b4d118ef223548fde3b753f1'
+ homepage "http://rigaux.org/hexedit.html"
+ url "http://rigaux.org/hexedit-1.2.13.src.tgz"
+ sha256 "6a126da30a77f5c0b08038aa7a881d910e3b65d13767fb54c58c983963b88dd7"
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
+ shell_output("#{bin}/hexedit -h 2>&1", 1)
end
end