aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mp3info.rb
diff options
context:
space:
mode:
authorXu Cheng2015-02-20 22:01:17 +0800
committerXu Cheng2015-02-20 22:14:53 +0800
commit53a14b982fd3486e2f6ec29ebc2ce48587f62f81 (patch)
tree64a34b29abfcb7ab941b0fcd47f7c8c5eb9a3046 /Library/Formula/mp3info.rb
parent6881bd90b6eb8da1f81f48953ba247dd52bbe824 (diff)
downloadhomebrew-53a14b982fd3486e2f6ec29ebc2ce48587f62f81.tar.bz2
mp3info: add test
Closes #36996. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula/mp3info.rb')
-rw-r--r--Library/Formula/mp3info.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/mp3info.rb b/Library/Formula/mp3info.rb
index 0c783057c..77804357f 100644
--- a/Library/Formula/mp3info.rb
+++ b/Library/Formula/mp3info.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Mp3info < Formula
- homepage 'http://www.ibiblio.org/mp3info/'
- url 'http://www.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-0.8.5a.tgz'
- sha1 '54df29eb6c2e581899affc12be698b0a71d91ca6'
+ homepage "http://www.ibiblio.org/mp3info/"
+ url "http://www.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-0.8.5a.tgz"
+ sha1 "54df29eb6c2e581899affc12be698b0a71d91ca6"
patch :p0 do
url "https://trac.macports.org/export/34602/trunk/dports/audio/mp3info/files/patch-mp3tech.c.diff"
@@ -11,8 +9,12 @@ class Mp3info < Formula
end
def install
- system "make mp3info doc"
+ system "make", "mp3info", "doc"
bin.install "mp3info"
man1.install "mp3info.1"
end
+
+ test do
+ system bin/"mp3info", "-x", test_fixtures("test.mp3")
+ end
end