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/"
|
2016-08-07 13:45:51 +00:00
|
|
|
url "https://github.com/gcovr/gcovr/archive/3.3.tar.gz"
|
|
|
|
sha256 "8a60ba6242d67a58320e9e16630d80448ef6d5284fda5fb3eff927b63c8b04a2"
|
2015-02-23 20:10:34 +00:00
|
|
|
head "https://github.com/gcovr/gcovr.git"
|
|
|
|
|
2015-10-22 13:36:10 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-02-23 20:10:34 +00:00
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
2016-08-07 13:45:51 +00:00
|
|
|
bin.install_symlink libexec/"scripts/gcovr"
|
2015-02-23 20:10:34 +00:00
|
|
|
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
|