xref: /openbsd-src/gnu/llvm/libcxx/benchmarks/lit.cfg.py (revision 46035553bfdd96e63c94e32da0210227ec2e3cf1)
1*46035553Spatrick# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
2*46035553Spatrick# Configuration file for the 'lit' test runner.
3*46035553Spatrickimport os
4*46035553Spatrickimport site
5*46035553Spatrick
6*46035553Spatricksite.addsitedir(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'utils'))
7*46035553Spatrickfrom libcxx.test.googlebenchmark import GoogleBenchmark
8*46035553Spatrick
9*46035553Spatrick# Tell pylint that we know config and lit_config exist somewhere.
10*46035553Spatrickif 'PYLINT_IMPORT' in os.environ:
11*46035553Spatrick    config = object()
12*46035553Spatrick    lit_config = object()
13*46035553Spatrick
14*46035553Spatrick# name: The name of this test suite.
15*46035553Spatrickconfig.name = 'libc++ benchmarks'
16*46035553Spatrickconfig.suffixes = []
17*46035553Spatrick
18*46035553Spatrickconfig.test_exec_root = os.path.join(config.libcxx_obj_root, 'benchmarks')
19*46035553Spatrickconfig.test_source_root = config.test_exec_root
20*46035553Spatrick
21*46035553Spatrickconfig.test_format = GoogleBenchmark(test_sub_dirs='.',
22*46035553Spatrick                                     test_suffix='.libcxx.out',
23*46035553Spatrick                                     benchmark_args=config.benchmark_args)