homebrew-core/Formula/gcovr.rb
Shaun Jackman 9cfc95cc29 gcovr 3.2 (new formula)
Gcovr provides a utility for managing the use of the GNU gcov utility and
generating summarized code coverage results.

Closes Homebrew/homebrew#37124.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-24 08:51:13 +00:00

17 lines
543 B
Ruby

class Gcovr < Formula
homepage "http://gcovr.com/"
url "https://github.com/gcovr/gcovr/archive/3.2.tar.gz"
sha1 "97e44794969378db99cb77ee3c71b110dc634a8f"
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