[PATCH] D37602: Properly hook debuginfo-tests up to lit and CMake

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 13:25:11 PDT 2017


beanz added inline comments.


================
Comment at: debuginfo-tests/CMakeLists.txt:29
+
+add_lit_testsuite(check-debuginfo "Running debug info integration tests"
+  ${CMAKE_CURRENT_BINARY_DIR}
----------------
zturner wrote:
> rnk wrote:
> > aprantl wrote:
> > > amccarth wrote:
> > > > I'm concerned that the difference between `ninja check-debuginfo` and `ninja check-llvm-debuginfo` isn't very obvious.  Can we tweak the name of this one, like `check-debuginfo-integration`?
> > > the target should be called check-clang-debuginfo. It is testing clang, not (or only indirectly) LLVM.
> > That's the first I've heard of check-llvm-debuginfo. It looks like @beanz added that in 2015. Personally I like `check-debuginfo` as is.
> In our case, it is also testing LLD's debug info, since LLD is what emits the PDB
In LLVM & Clang we auto-generate lots of sub-check targets so they follow a convention `check-${project}-${test subdirectory}`. That's where the `check-llvm-debuginfo` target comes from, it is the <llvm>/test/DebugInfo directory of lit tests.

This is all done with the CMake function `add_lit_testsuites`.


https://reviews.llvm.org/D37602





More information about the llvm-commits mailing list