aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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