diff options
| author | Sterling Augustine <saugustine@google.com> | 2019-09-05 20:44:08 +0000 |
|---|---|---|
| committer | Sterling Augustine <saugustine@google.com> | 2019-09-05 20:44:08 +0000 |
| commit | bf7602b261c7167966c6ae5cf153f6e4847ace3b (patch) | |
| tree | 6f50f369b49f18756ee17d5143e0b684850e13be /libcxx/test | |
| parent | 1d138a47e21a08b663742ca3c19b09444823e856 (diff) | |
| download | bcm5719-llvm-bf7602b261c7167966c6ae5cf153f6e4847ace3b.tar.gz bcm5719-llvm-bf7602b261c7167966c6ae5cf153f6e4847ace3b.zip | |
Add testing infrastructure to check if gdb is available for testing.
Reviewers: echristo, EricWF
Subscribers: mgorny, christof, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67194
llvm-svn: 371120
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | libcxx/test/lit.site.cfg.in | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt index 8a2114faf3c..e6ef6284eca 100644 --- a/libcxx/test/CMakeLists.txt +++ b/libcxx/test/CMakeLists.txt @@ -60,6 +60,14 @@ if (NOT DEFINED LIBCXX_TEST_DEPS) message(FATAL_ERROR "Expected LIBCXX_TEST_DEPS to be defined") endif() +find_program(LIBCXX_GDB gdb) +if (LIBCXX_GDB) + set(LIBCXX_GDB "${LIBCXX_GDB}") + message(STATUS "gdb found: ${LIBCXX_GDB}") +else() + message(STATUS "gdb not found. Disabling dependent tests.") +endif() + if (LIBCXX_INCLUDE_TESTS) include(AddLLVM) # for configure_lit_site_cfg and add_lit_testsuit @@ -87,7 +95,6 @@ if (LIBCXX_GENERATE_COVERAGE) setup_lcov_test_target_coverage("cxx" "${output_dir}" "${capture_dirs}" "${extract_dirs}") endif() - if (LIBCXX_CONFIGURE_IDE) # Create dummy targets for each of the tests in the test suite, this allows # IDE's such as CLion to correctly highlight the tests because it knows diff --git a/libcxx/test/lit.site.cfg.in b/libcxx/test/lit.site.cfg.in index fd3d7d8dac6..fafc8fe6fec 100644 --- a/libcxx/test/lit.site.cfg.in +++ b/libcxx/test/lit.site.cfg.in @@ -35,6 +35,7 @@ config.libcxxabi_shared = @LIBCXXABI_ENABLE_SHARED@ config.cxx_ext_threads = @LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY@ config.pstl_src_root = "@ParallelSTL_SOURCE_DIR@" if @LIBCXX_ENABLE_PARALLEL_ALGORITHMS@ else None config.pstl_obj_root = "@ParallelSTL_BINARY_DIR@" if @LIBCXX_ENABLE_PARALLEL_ALGORITHMS@ else None +config.libcxx_gdb = "@LIBCXX_GDB@" # Let the main config do the real work. config.loaded_site_config = True |

