aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gcovr.rb
diff options
context:
space:
mode:
authorShaun Jackman2015-02-23 12:10:34 -0800
committerMike McQuaid2015-02-24 08:51:13 +0000
commit73a1e17f0f1770bc8998d58c56e7dabd6a61fef1 (patch)
treed265dbc285bd3f958eda881ddbdc8b2a71c37cf7 /Library/Formula/gcovr.rb
parent23ee82c9eb81528c78a6f91d0621ed9bffed6e4c (diff)
downloadhomebrew-73a1e17f0f1770bc8998d58c56e7dabd6a61fef1.tar.bz2
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 #37124. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/gcovr.rb')
-rw-r--r--Library/Formula/gcovr.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/gcovr.rb b/Library/Formula/gcovr.rb
new file mode 100644
index 000000000..0b18d4d5f
--- /dev/null
+++ b/Library/Formula/gcovr.rb
@@ -0,0 +1,17 @@
+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