aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 17:29:47 +0800
committerMike McQuaid2015-01-03 18:42:45 +0000
commitbb09b1fc40114fc2c83594901c99cd5e9329d4fe (patch)
tree8590f8dbac56cd90013709effe66d21d07e79593 /Library
parentfcdd06ca3cf77c45bef969fd32f817375d36e354 (diff)
downloadhomebrew-bb09b1fc40114fc2c83594901c99cd5e9329d4fe.tar.bz2
lame: add test
Closes #35503. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/lame.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/lame.rb b/Library/Formula/lame.rb
index 0e606c031..6afe8b227 100644
--- a/Library/Formula/lame.rb
+++ b/Library/Formula/lame.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Lame < Formula
- homepage 'http://lame.sourceforge.net/'
- url 'https://downloads.sourceforge.net/sourceforge/lame/lame-3.99.5.tar.gz'
- sha1 '03a0bfa85713adcc6b3383c12e2cc68a9cfbf4c4'
+ homepage "http://lame.sourceforge.net/"
+ url "https://downloads.sourceforge.net/sourceforge/lame/lame-3.99.5.tar.gz"
+ sha1 "03a0bfa85713adcc6b3383c12e2cc68a9cfbf4c4"
bottle do
cellar :any
@@ -22,6 +20,10 @@ class Lame < Formula
"--disable-debug",
"--prefix=#{prefix}",
"--enable-nasm"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/lame", "--genre-list", test_fixtures("test.mp3")
end
end