aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-09-13 17:31:50 +0100
committerMike McQuaid2013-09-13 17:32:21 +0100
commit6810c8fd7291520e8d89ead547527058ffc1f8a1 (patch)
tree8509104442b360a93943192fb8235a62a7acb2da /Library/Formula
parenta8760185baf3a4eded6ac0bafc8c9fccb4708d33 (diff)
downloadhomebrew-6810c8fd7291520e8d89ead547527058ffc1f8a1.tar.bz2
par2tbb: add a decent (and working) test.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/par2tbb.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/par2tbb.rb b/Library/Formula/par2tbb.rb
index d16193408..a1c247582 100644
--- a/Library/Formula/par2tbb.rb
+++ b/Library/Formula/par2tbb.rb
@@ -32,7 +32,9 @@ class Par2tbb < Formula
system "make install"
end
- def test
- system "#{bin}/par2"
+ test do
+ (testpath/'test.out').write "test"
+ system "#{bin}/par2", 'create', 'test', 'test.out'
+ system "#{bin}/par2", 'verify', 'test.par2'
end
end