mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 05:36:07 +00:00

This is an intermediate and fairly mechanical step towards unifying the benchmarks with the rest of the test suite. Moving this around requires a few changes, notably making sure we don't throw a wrench into the discovery process of the normal test suite. This won't be a problem anymore once benchmarks are taken into account by the test setup out of the box.
24 lines
730 B
Python
24 lines
730 B
Python
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
|
|
# Configuration file for the 'lit' test runner.
|
|
import os
|
|
import site
|
|
|
|
site.addsitedir(os.path.join("@LIBCXX_SOURCE_DIR@", "utils"))
|
|
from libcxx.test.googlebenchmark import GoogleBenchmark
|
|
|
|
# Tell pylint that we know config and lit_config exist somewhere.
|
|
if "PYLINT_IMPORT" in os.environ:
|
|
config = object()
|
|
lit_config = object()
|
|
|
|
# name: The name of this test suite.
|
|
config.name = "libc++ benchmarks"
|
|
config.suffixes = []
|
|
|
|
config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
|
config.test_source_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
|
|
|
config.test_format = GoogleBenchmark(
|
|
test_sub_dirs=".", test_suffix=".bench.out", benchmark_args=config.benchmark_args
|
|
)
|