[llvm-dev] Unit Tests CMake configuration

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 5 12:25:57 PDT 2018


2018-06-05 3:02 GMT-05:00 Dean Michael Berris via llvm-dev
<llvm-dev at lists.llvm.org>:
> Does anybody know why we're not using the `add_test` feature in CMake
> [0] for unit tests? In particular, compiler-rt (sanitizers and xray)
> has a number of unit tests which could really just be built as normal
> binaries and invoked appropriately.

I assume this is mostly historical when LLVM was using GNU autotools,
i.e. there was no ctest back then, and LLVM introduced llvm-lit
(2009-09-08; could also have used dejagnu). The first CMakeLists.txt
was introduced in 2008-09-21, but the autotools build was still
present until 2016.

Michael


More information about the llvm-dev mailing list