Rename cxx-benchmark-unittests target and convert to LIT.
authorEric Fiselier <eric@efcs.ca>
Wed, 14 Nov 2018 20:38:46 +0000 (20:38 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 14 Nov 2018 20:38:46 +0000 (20:38 +0000)
commit336a1a681189bf2b50b7bd0f8229656c58ac1b37
treeaf32e54c51b309a92f94bea5e4f6da0090748e1e
parent7f15568c400024222cc9507c78c5a76aa12f37bf
Rename cxx-benchmark-unittests target and convert to LIT.

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
libcxx/CMakeLists.txt
libcxx/benchmarks/CMakeLists.txt
libcxx/benchmarks/lit.cfg.py [new file with mode: 0644]
libcxx/benchmarks/lit.site.cfg.py.in [new file with mode: 0644]
libcxx/docs/BuildingLibcxx.rst
libcxx/test/CMakeLists.txt
libcxx/utils/libcxx/test/googlebenchmark.py [new file with mode: 0644]