[libcxx-commits] [PATCH] D120479: [libcxx] [test] Place output from newconfig tests under a 'test' subdir

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 24 05:48:41 PST 2022


mstorsjo created this revision.
mstorsjo added a reviewer: ldionne.
Herald added a subscriber: mgorny.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.

Previously, all the output from the tests were placed directly in
the build directory. The tests produce a couple directories named
`__config_{exec,cache,src}__` which are easy to distinguish, but
the output from the individual tests are placed in subdirectories
named `std` or `libcxx`. Especially the build output from libcxx
tests ends up conflated in the same directories as are used for
building libcxx with cmake.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120479

Files:
  libcxx/test/configs/cmake-bridge.cfg.in


Index: libcxx/test/configs/cmake-bridge.cfg.in
===================================================================
--- libcxx/test/configs/cmake-bridge.cfg.in
+++ libcxx/test/configs/cmake-bridge.cfg.in
@@ -22,7 +22,7 @@
 config.test_source_root = os.path.join('@LIBCXX_SOURCE_DIR@', 'test')
 config.test_format = libcxx.test.format.CxxStandardLibraryTest()
 config.recursiveExpansionLimit = 10
-config.test_exec_root = '@CMAKE_BINARY_DIR@'
+config.test_exec_root = os.path.join('@CMAKE_BINARY_DIR@', 'test')
 
 # Add substitutions for bootstrapping the test suite configuration
 config.substitutions.append(('%{cxx}', shlex.quote('@CMAKE_CXX_COMPILER@')))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120479.411103.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220224/cc6cf8a3/attachment.bin>


More information about the libcxx-commits mailing list