mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 13:50:11 +00:00
336a1a6811
This patch renames the cxx-benchmark-unittests to check-cxx-benchmarks and converts the target to use LIT in order to make the tests run faster and provide better output. In particular this runs each benchmark in a suite one by one, allowing more parallelism while ensuring output isn't garbage with multiple threads. Additionally, it adds the CMake flag '-DLIBCXX_BENCHMARK_TEST_ARGS=<list>' to specify what options are passed when running the benchmarks. llvm-svn: 346888
10 lines
314 B
Python
10 lines
314 B
Python
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
import sys
|
|
|
|
config.libcxx_src_root = "@LIBCXX_SOURCE_DIR@"
|
|
config.libcxx_obj_root = "@LIBCXX_BINARY_DIR@"
|
|
config.benchmark_args = "@LIBCXX_BENCHMARK_TEST_ARGS@".split(';')
|
|
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/benchmarks/lit.cfg.py") |