[all-commits] [llvm/llvm-project] 0c3401: [runtimes] Serialize all Lit params instead of pas...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Thu Jul 15 04:53:39 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0c3401c86e82cb5d8ba0c9dec6573473e505c5fc
https://github.com/llvm/llvm-project/commit/0c3401c86e82cb5d8ba0c9dec6573473e505c5fc
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2021-07-15 (Thu, 15 Jul 2021)
Changed paths:
M libcxx/test/CMakeLists.txt
M libcxxabi/test/CMakeLists.txt
M libunwind/test/CMakeLists.txt
Log Message:
-----------
[runtimes] Serialize all Lit params instead of passing them to add_lit_testsuite
add_lit_testsuite() takes Lit parameters passed to it and adds them
to the parameters used globally when running all test suites. That
means that a target like `check-all`, which ends up calling Lit on
the whole monorepo, will see the test parameters for all the individual
project's test suites.
So, for example, it would see `--param std=c++03` (from libc++abi), and
`--param std=c++03` (from libc++), and `--param whatever` (from another
project being tested at the same time). While always unclean, that works
when the parameters all agree. However, if the parameters share the same
name but have different values, only one of those two values will be used
and it will be incredibly confusing to understand why one of the test
suites is being run with the incorrect parameter value.
For that reason, this commit moves away from using add_lit_testsuite()'s
PARAM functionality, and serializes the parameter values for the runtimes
in the generated config.py file instead, which is local to the specific
test suite.
Differential Revision: https://reviews.llvm.org/D105991
More information about the All-commits
mailing list