From af069bd9b32a42d1682afd4a2f41599b86b4e213 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Tue, 11 Feb 2014 10:17:11 -0800 Subject: cksfv: add test Closes #26631. Signed-off-by: Mike McQuaid --- Library/Formula/cksfv.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3