homebrew-core/Formula/cksfv.rb
Mike Naberezny 2d2cc8ffe0 cksfv: add test
Closes Homebrew/homebrew#26631.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-11 20:00:51 +00:00

21 lines
499 B
Ruby

require 'formula'
class Cksfv < Formula
homepage 'http://zakalwe.fi/~shd/foss/cksfv/'
url 'http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2'
sha1 'f6da3a559b2862691a2be6d2be0aac66cd624885'
def install
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