llvm/libcxx/test/benchmarks/lit.cfg.py.in

# -*- 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
)