summaryrefslogtreecommitdiff
path: root/testing/tools/coverage/llvm-gcov
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-08-09 14:38:04 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-09 19:10:13 +0000
commit44f777901732fbf1bdb152e6ff4d1ba41ce75bba (patch)
tree5c02c76719dc15ee0594c89d6d7013587734c5dd /testing/tools/coverage/llvm-gcov
parentbe63ab97e0385b4024ef84fda79fc84dc111ab23 (diff)
downloadpdfium-44f777901732fbf1bdb152e6ff4d1ba41ce75bba.tar.xz
Move tools/coverage to testing/tools/coverage
Change-Id: Icb1d85167a234c9862a4011dea5dfaa09299c71c Reviewed-on: https://pdfium-review.googlesource.com/10431 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/tools/coverage/llvm-gcov')
-rwxr-xr-xtesting/tools/coverage/llvm-gcov15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/tools/coverage/llvm-gcov b/testing/tools/coverage/llvm-gcov
new file mode 100755
index 0000000000..8141e7ef27
--- /dev/null
+++ b/testing/tools/coverage/llvm-gcov
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Copyright 2017 The PDFium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Wrapper script to make llvm-cov behave like gcov, so it can be passed in as the --gcov-tool
+# parameter when using lcov. Specifically adds the keyword 'gcov' to the arguments being passed in,
+# to tell llvm-cov to operate in gcov compatibility mode.
+#
+# LLVM_COV_BIN needs to be set by caller and should the path to
+# a llvm-cov binary with a version of 3.5 or greater.
+
+set -e
+
+exec ${LLVM_COV_BIN} gcov $*