homebrew-core/Formula/gcovr.rb

21 lines
635 B
Ruby
Raw Normal View History

class Gcovr < Formula
desc "Reports from gcov test coverage program"
homepage "http://gcovr.com/"
url "https://github.com/gcovr/gcovr/archive/3.3.tar.gz"
sha256 "8a60ba6242d67a58320e9e16630d80448ef6d5284fda5fb3eff927b63c8b04a2"
head "https://github.com/gcovr/gcovr.git"
2015-10-22 13:36:10 +00:00
bottle :unneeded
def install
libexec.install Dir["*"]
bin.install_symlink libexec/"scripts/gcovr"
end
test do
(testpath/"example.c").write "int main() { return 0; }"
system *%W[cc -fprofile-arcs -ftest-coverage -fPIC -O0 -o example example.c]
assert_match "Code Coverage Report", shell_output("#{bin}/gcovr -r .")
end
end