lit.cfg.py 834 B

1234567891011121314151617181920212223
  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. site.addsitedir(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'utils'))
  6. from libcxx.test.googlebenchmark import GoogleBenchmark
  7. # Tell pylint that we know config and lit_config exist somewhere.
  8. if 'PYLINT_IMPORT' in os.environ:
  9. config = object()
  10. lit_config = object()
  11. # name: The name of this test suite.
  12. config.name = 'libc++ benchmarks'
  13. config.suffixes = []
  14. config.test_exec_root = os.path.join(config.libcxx_obj_root, 'benchmarks')
  15. config.test_source_root = config.test_exec_root
  16. config.test_format = GoogleBenchmark(test_sub_dirs='.',
  17. test_suffix='.libcxx.out',
  18. benchmark_args=config.benchmark_args)