• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- Python -*-
2
3# Configuration file for the 'lit' test runner.
4
5def getRoot(config):
6    if not config.parent:
7        return config
8    return getRoot(config.parent)
9
10root = getRoot(config)
11
12# testFormat: The test format to use to interpret tests.
13config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang,
14                                                 dir='%s/tools/clang/include/clang' % root.llvm_src_root,
15                                                 recursive=True,
16                                                 pattern='^(.*\\.h)$',
17                                                 extra_cxx_args=['-D__STDC_LIMIT_MACROS',
18                                                                 '-D__STDC_CONSTANT_MACROS',
19                                                                 '-Wno-sign-compare',
20                                                                 '-Werror',
21                                                                 '-I%s/include' % root.llvm_src_root,
22                                                                 '-I%s/include' % root.llvm_obj_root,
23                                                                 '-I%s/tools/clang/include' % root.llvm_src_root,
24                                                                 '-I%s/tools/clang/include' % root.llvm_obj_root])
25