Eric Fiselier | 453bc18 | 2018-11-14 20:38:46 +0000 | [diff] [blame] | 1 | # -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: |
| 2 | # Configuration file for the 'lit' test runner. |
| 3 | import os |
| 4 | import site |
| 5 | |
| 6 | site.addsitedir(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'utils')) |
| 7 | from libcxx.test.googlebenchmark import GoogleBenchmark |
| 8 | |
| 9 | # Tell pylint that we know config and lit_config exist somewhere. |
| 10 | if 'PYLINT_IMPORT' in os.environ: |
| 11 | config = object() |
| 12 | lit_config = object() |
| 13 | |
| 14 | # name: The name of this test suite. |
| 15 | config.name = 'libc++ benchmarks' |
| 16 | config.suffixes = [] |
| 17 | |
| 18 | config.test_exec_root = os.path.join(config.libcxx_obj_root, 'benchmarks') |
| 19 | config.test_source_root = config.test_exec_root |
| 20 | |
| 21 | config.test_format = GoogleBenchmark(test_sub_dirs='.', |
| 22 | test_suffix='.libcxx.out', |
| 23 | benchmark_args=config.benchmark_args) |