aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cksfv.rb
diff options
context:
space:
mode:
authorMike Naberezny2014-02-11 10:17:11 -0800
committerMike McQuaid2014-02-11 20:00:51 +0000
commitaf069bd9b32a42d1682afd4a2f41599b86b4e213 (patch)
tree11aa439117b71f38590051ec6f7c926d25e8cc28 /Library/Formula/cksfv.rb
parent1d57d90a80becb0c95c2a3c122800d366a8ea691 (diff)
downloadhomebrew-af069bd9b32a42d1682afd4a2f41599b86b4e213.tar.bz2
cksfv: add test
Closes #26631. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/cksfv.rb')
-rw-r--r--Library/Formula/cksfv.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/cksfv.rb b/Library/Formula/cksfv.rb
index 90d7e64f8..c0cf4f1c5 100644
--- a/Library/Formula/cksfv.rb
+++ b/Library/Formula/cksfv.rb
@@ -9,4 +9,13 @@ class Cksfv < Formula
system "./configure", "--prefix=#{prefix}"
system "make install"
end
+
+ test do
+ path = testpath/"foo"
+ path.write "abcd"
+
+ lines = `#{bin}/cksfv #{path}`.split("\n")
+ assert lines.include?("#{path} ED82CD11")
+ assert_equal 0, $?.exitstatus
+ end
end