]> git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/utils/C++Tests/Clang-Code-Syntax/lit.local.cfg
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / utils / C++Tests / Clang-Code-Syntax / lit.local.cfg
1 # -*- Python -*-
2
3 # Configuration file for the 'lit' test runner.
4
5 def getRoot(config):
6 if not config.parent:
7 return config
8 return getRoot(config.parent)
9
10 root = getRoot(config)
11
12 # testFormat: The test format to use to interpret tests.
13 cxxflags = ['-D__STDC_LIMIT_MACROS',
14 '-D__STDC_CONSTANT_MACROS',
15 '-Wno-sign-compare',
16 '-I%s/include' % root.llvm_src_root,
17 '-I%s/include' % root.llvm_obj_root,
18 '-I%s/tools/clang/include' % root.llvm_src_root,
19 '-I%s/tools/clang/include' % root.llvm_obj_root]
20 config.test_format = \
21 lit.formats.OneCommandPerFileTest(command=[root.clang,
22 '-fsyntax-only'] + cxxflags,
23 dir='%s/tools/clang/lib' % root.llvm_src_root,
24 recursive=True,
25 pattern='^(.*\\.cpp)$')