2015-02-23 20:10:34 +00:00
|
|
|
class Gcovr < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Reports from gcov test coverage program"
|
2015-02-23 20:10:34 +00:00
|
|
|
homepage "http://gcovr.com/"
|
|
|
|
url "https://github.com/gcovr/gcovr/archive/3.2.tar.gz"
|
2015-09-10 19:24:04 +00:00
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/g/gcovr/gcovr_3.2.orig.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "5a969caf61452705a39f6642f4707d23644bdd2e5ef913014bf95c4bd0263db6"
|
2015-02-23 20:10:34 +00:00
|
|
|
head "https://github.com/gcovr/gcovr.git"
|
|
|
|
|
|
|
|
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
|