aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-05 21:13:12 +0100
committerJack Nagel2015-01-06 00:17:19 -0500
commitfab15d42943992d34844fed2478c2bd5210a53b3 (patch)
treea4deea5e9cbcf6526a27cb61a784811d29557bda
parent284480e73ef9b4c8b06884f1bc88d672cc1a4b24 (diff)
downloadhomebrew-fab15d42943992d34844fed2478c2bd5210a53b3.tar.bz2
bchunk: test added
Closes #35573. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/bchunk.rb25
1 files changed, 18 insertions, 7 deletions
diff --git a/Library/Formula/bchunk.rb b/Library/Formula/bchunk.rb
index 8b974e8d6..6ff7a7d29 100644
--- a/Library/Formula/bchunk.rb
+++ b/Library/Formula/bchunk.rb
@@ -1,13 +1,24 @@
-require 'formula'
-
class Bchunk < Formula
- homepage 'http://he.fi/bchunk/'
- url 'http://he.fi/bchunk/bchunk-1.2.0.tar.gz'
- sha1 'a328e4665eb5e51df63d8d27d1d75ecc74bdef9e'
+ homepage "http://he.fi/bchunk/"
+ url "http://he.fi/bchunk/bchunk-1.2.0.tar.gz"
+ sha1 "a328e4665eb5e51df63d8d27d1d75ecc74bdef9e"
def install
system "make"
- bin.install 'bchunk'
- man1.install 'bchunk.1'
+ bin.install "bchunk"
+ man1.install "bchunk.1"
+ end
+
+ test do
+ (testpath/"foo.cue").write <<-EOS.undent
+ foo.bin BINARY
+ TRACK 01 MODE1/2352
+ INDEX 01 00:00:00
+ EOS
+
+ touch testpath/"foo.bin"
+
+ system "#{bin}/bchunk", "foo.bin", "foo.cue", "foo"
+ assert File.exist? testpath/"foo01.iso"
end
end