aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-11 10:18:23 +0200
committerXu Cheng2015-04-12 02:19:31 +0800
commitfe7ef04421b91f9bf4267e63a3cc09e7d36f3265 (patch)
tree3e1699e85937fb7e6bb091c8f6829c8bf7a10101 /Library
parent7b99108833aadd3026718d8a18090af5f230d4e9 (diff)
downloadhomebrew-fe7ef04421b91f9bf4267e63a3cc09e7d36f3265.tar.bz2
shorten: test added
Closes #38539. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/shorten.rb18
1 files changed, 11 insertions, 7 deletions
diff --git a/Library/Formula/shorten.rb b/Library/Formula/shorten.rb
index 3ab7f9a0e..72b2d4ebd 100644
--- a/Library/Formula/shorten.rb
+++ b/Library/Formula/shorten.rb
@@ -1,13 +1,17 @@
-require 'formula'
-
class Shorten < Formula
- homepage 'http://www.etree.org/shnutils/shorten/'
- url 'http://www.etree.org/shnutils/shorten/dist/src/shorten-3.6.1.tar.gz'
- sha1 'bd525ced0b9ba99a7a178c11647a853147977fa5'
+ homepage "http://www.etree.org/shnutils/shorten/"
+ url "http://www.etree.org/shnutils/shorten/dist/src/shorten-3.6.1.tar.gz"
+ sha256 "ce22e0676c93494ee7d094aed9b27ad018eae5f2478e8862ae1e962346405b66"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/shorten", test_fixtures("test.wav"), "test"
+ assert File.exist? "test"
end
end