diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2021-05-08 12:03:53 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2021-06-02 18:39:27 -0400 |
commit | 875ff8e059b73f65f5ad08d416a0a9caf0673d1a (patch) | |
tree | e0d3d375615640a3721ddd1fc1a964bd614fc4e3 | |
parent | 3e5ddb83e387281bc9b3dea8766bcc633a6fcee5 (diff) | |
download | llvm-875ff8e059b73f65f5ad08d416a0a9caf0673d1a.zip llvm-875ff8e059b73f65f5ad08d416a0a9caf0673d1a.tar.gz llvm-875ff8e059b73f65f5ad08d416a0a9caf0673d1a.tar.bz2 |
[libc++] Enable tests for the experimental library by default
This matches the fact that we build the experimental library by default.
Otherwise, by default we'd be building the library but not testing it,
which is inconsistent.
Differential Revision: https://reviews.llvm.org/D102109
-rw-r--r-- | libcxx/test/configs/libcxx-trunk-static.cfg.in | 5 | ||||
-rw-r--r-- | libcxx/utils/libcxx/test/params.py | 2 | ||||
-rw-r--r-- | libcxxabi/test/lit.site.cfg.in | 1 | ||||
-rw-r--r-- | libunwind/test/lit.site.cfg.in | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/libcxx/test/configs/libcxx-trunk-static.cfg.in b/libcxx/test/configs/libcxx-trunk-static.cfg.in index 419ed84..4a6b4f1 100644 --- a/libcxx/test/configs/libcxx-trunk-static.cfg.in +++ b/libcxx/test/configs/libcxx-trunk-static.cfg.in @@ -38,9 +38,8 @@ config.substitutions.append(('%{compile_flags}', os.path.join(LIBCXX_ROOT, 'test', 'support')) )) config.substitutions.append(('%{link_flags}', - '-nostdlib++ {} {} -pthread'.format( - os.path.join(INSTALL_ROOT, 'lib', 'libc++.a'), - os.path.join(INSTALL_ROOT, 'lib', 'libc++abi.a')) + '-nostdlib++ -L {} -lc++ -lc++abi -pthread'.format( + os.path.join(INSTALL_ROOT, 'lib')) )) config.substitutions.append(('%{exec}', '{} {} --execdir %T -- '.format( diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py index 068bfce..d2a7309 100644 --- a/libcxx/utils/libcxx/test/params.py +++ b/libcxx/utils/libcxx/test/params.py @@ -135,7 +135,7 @@ DEFAULT_PARAMETERS = [ ])), # Parameters to enable or disable parts of the test suite - Parameter(name='enable_experimental', choices=[True, False], type=bool, default=False, + Parameter(name='enable_experimental', choices=[True, False], type=bool, default=True, help="Whether to enable tests for experimental C++ libraries (typically Library Fundamentals TSes).", actions=lambda experimental: [] if not experimental else [ AddFeature('c++experimental'), diff --git a/libcxxabi/test/lit.site.cfg.in b/libcxxabi/test/lit.site.cfg.in index 3445725..425b9f2 100644 --- a/libcxxabi/test/lit.site.cfg.in +++ b/libcxxabi/test/lit.site.cfg.in @@ -30,6 +30,7 @@ if "@TARGET_TRIPLE@": config.sysroot = "@LIBCXXABI_SYSROOT@" config.gcc_toolchain = "@LIBCXXABI_GCC_TOOLCHAIN@" config.cxx_ext_threads = @LIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY@ +config.enable_experimental = False 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 diff --git a/libunwind/test/lit.site.cfg.in b/libunwind/test/lit.site.cfg.in index 14fabce..51b4631 100644 --- a/libunwind/test/lit.site.cfg.in +++ b/libunwind/test/lit.site.cfg.in @@ -29,6 +29,7 @@ if "@TARGET_TRIPLE@": config.sysroot = "@LIBUNWIND_SYSROOT@" config.gcc_toolchain = "@LIBUNWIND_GCC_TOOLCHAIN@" config.cxx_ext_threads = @LIBUNWIND_BUILD_EXTERNAL_THREAD_LIBRARY@ +config.enable_experimental = False site.addsitedir(os.path.join(config.libunwind_src_root, 'test')) site.addsitedir(os.path.join(config.libcxx_src_root, 'utils')) |