From a103fdeb424cd52040a21b91fb8ad727aeb468fc Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sat, 11 Apr 2015 11:52:38 +0200 Subject: shntool: test added Closes #38544. Signed-off-by: Xu Cheng --- Library/Formula/shntool.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3