bf9653d85f
Summary: This patch adds configuration to CMake and LIT for running the libc++ test-suite to generate code coverage. To use code coverage use following instructions. * Find the clang resource dir using `$CXX -print-search-dirs`. Let <library-dir> be the first library search directory. * `cmake <regular-options> -DLIBCXX_GENERATE_COVERAGE=ON -DLIBCXX_COVERAGE_LIBRARY=<library-dir>/lib/<platform>/libclang_rt.profile.a <source>` * `make cxx` * `make check-libcxx` * `make generate-libcxx-coverage` The reason I want this patch upstreamed is so I can setup a bot that generates code coverage and posts in online for every revision. Reviewers: mclow.lists, jroelofs, danalbert Reviewed By: danalbert Differential Revision: http://reviews.llvm.org/D8716 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@233669 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
1.5 KiB
INI
29 lines
1.5 KiB
INI
@AUTO_GEN_COMMENT@
|
|
config.cxx_under_test = "@LIBCXX_COMPILER@"
|
|
config.std = "@LIBCXX_STD_VERSION@"
|
|
config.libcxx_src_root = "@LIBCXX_SOURCE_DIR@"
|
|
config.libcxx_obj_root = "@LIBCXX_BINARY_DIR@"
|
|
config.cxx_library_root = "@LIBCXX_LIBRARY_DIR@"
|
|
config.enable_exceptions = "@LIBCXX_ENABLE_EXCEPTIONS@"
|
|
config.enable_rtti = "@LIBCXX_ENABLE_RTTI@"
|
|
config.enable_shared = "@LIBCXX_ENABLE_SHARED@"
|
|
config.enable_32bit = "@LIBCXX_BUILD_32_BITS@"
|
|
config.enable_global_filesystem_namespace = "@LIBCXX_ENABLE_GLOBAL_FILESYSTEM_NAMESPACE@"
|
|
config.enable_stdin = "@LIBCXX_ENABLE_STDIN@"
|
|
config.enable_stdout = "@LIBCXX_ENABLE_STDOUT@"
|
|
config.enable_threads = "@LIBCXX_ENABLE_THREADS@"
|
|
config.enable_monotonic_clock = "@LIBCXX_ENABLE_MONOTONIC_CLOCK@"
|
|
config.cxx_abi = "@LIBCXX_CXX_ABI_LIBNAME@"
|
|
config.use_sanitizer = "@LLVM_USE_SANITIZER@"
|
|
config.abi_library_path = "@LIBCXX_CXX_ABI_LIBRARY_PATH@"
|
|
config.configuration_variant = "@LIBCXX_LIT_VARIANT@"
|
|
config.target_triple = "@LIBCXX_TARGET_TRIPLE@"
|
|
config.sysroot = "@LIBCXX_SYSROOT@"
|
|
config.gcc_toolchain = "@LIBCXX_GCC_TOOLCHAIN@"
|
|
config.generate_coverage = "@LIBCXX_GENERATE_COVERAGE@"
|
|
config.target_info = "@LIBCXX_TARGET_INFO@"
|
|
config.executor = "@LIBCXX_EXECUTOR@"
|
|
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/test/lit.cfg")
|