[PATCH] D102299: [llvm-cov][test] Add test coverage for "gcov" implying "llvm-cov gcov" compatibility.

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 12 08:25:23 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1336c5ae2fea: [llvm-cov][test] Add test coverage for "gcov" implying "llvm-cov gcov"… (authored by rupprecht).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102299/new/

https://reviews.llvm.org/D102299

Files:
  llvm/test/tools/llvm-cov/tool-name.test


Index: llvm/test/tools/llvm-cov/tool-name.test
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-cov/tool-name.test
@@ -0,0 +1,26 @@
+## Don't make symlinks on Windows.
+# UNSUPPORTED: system-windows
+
+# RUN: rm -rf %t
+# RUN: mkdir %t
+
+## By default, assume llvm-cov.
+# RUN: ln -s llvm-cov %t/llvm-foo
+
+# RUN: llvm-cov --help 2>&1 | FileCheck --check-prefix=COV %s
+# RUN: %t/llvm-foo --help 2>&1 | FileCheck --check-prefix=COV %s
+
+# COV: Shows code coverage information.
+# COV: Subcommands:
+
+## If the filename ends in "gcov", assume gcov compatibility.
+# RUN: ln -s llvm-cov %t/llvm-gcov
+# RUN: ln -s llvm-cov %t/gcov
+
+# RUN: %t/llvm-gcov --help 2>&1 | FileCheck --check-prefix=GCOV %s
+# RUN: %t/gcov --help 2>&1 | FileCheck --check-prefix=GCOV %s
+# RUN: llvm-cov gcov --help 2>&1 | FileCheck --check-prefix=GCOV %s
+
+# GCOV: OVERVIEW: LLVM code coverage tool
+# GCOV: --gcda{{.*}}Override inferred gcda file
+# GCOV: --gcno{{.*}}Override inferred gcno file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102299.344833.patch
Type: text/x-patch
Size: 1036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210512/f4c6ef91/attachment.bin>


More information about the llvm-commits mailing list