aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-11 11:52:38 +0200
committerXu Cheng2015-04-12 02:08:08 +0800
commita103fdeb424cd52040a21b91fb8ad727aeb468fc (patch)
treeaef65db61cfc000a63505a484c414f3ee35737b9 /Library
parent59bbdca7303f3c148a0b1e769c6d46293c5a0313 (diff)
downloadhomebrew-a103fdeb424cd52040a21b91fb8ad727aeb468fc.tar.bz2
shntool: test added
Closes #38544. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/shntool.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/shntool.rb b/Library/Formula/shntool.rb
index e00dcd4dd..07bd058eb 100644
--- a/Library/Formula/shntool.rb
+++ b/Library/Formula/shntool.rb
@@ -1,13 +1,15 @@
-require 'formula'
-
class Shntool < Formula
- homepage 'http://etree.org/shnutils/shntool/'
- url 'http://etree.org/shnutils/shntool/dist/src/shntool-3.0.10.tar.gz'
- sha1 '7a2bc8801e180cf582f0e39775603582e35d50d2'
+ homepage "http://etree.org/shnutils/shntool/"
+ url "http://etree.org/shnutils/shntool/dist/src/shntool-3.0.10.tar.gz"
+ sha256 "74302eac477ca08fb2b42b9f154cc870593aec8beab308676e4373a5e4ca2102"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/shninfo", test_fixtures("test.wav")
end
end