2009-09-16 09:40:13 +08:00
|
|
|
# -*- Python -*-
|
|
|
|
|
|
|
|
# Configuration file for the 'lit' test runner.
|
|
|
|
|
|
|
|
def getRoot(config):
|
|
|
|
if not config.parent:
|
|
|
|
return config
|
|
|
|
return getRoot(config.parent)
|
|
|
|
|
|
|
|
root = getRoot(config)
|
|
|
|
|
|
|
|
# testFormat: The test format to use to interpret tests.
|
|
|
|
config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang,
|
|
|
|
dir='%s/include/llvm' % root.llvm_src_root,
|
2009-12-11 06:08:55 +08:00
|
|
|
recursive=True,
|
2009-09-16 09:40:13 +08:00
|
|
|
pattern='^(.*\\.h|[^.]*)$',
|
|
|
|
extra_cxx_args=['-D__STDC_LIMIT_MACROS',
|
|
|
|
'-D__STDC_CONSTANT_MACROS',
|
2009-11-26 13:08:53 +08:00
|
|
|
'-Werror',
|
2009-09-16 09:40:13 +08:00
|
|
|
'-I%s/include' % root.llvm_src_root,
|
|
|
|
'-I%s/include' % root.llvm_obj_root])
|
|
|
|
|
2009-11-15 15:11:12 +08:00
|
|
|
config.excludes = ['AbstractTypeUser.h', 'DAGISelHeader.h',
|
2009-12-11 06:08:55 +08:00
|
|
|
'AIXDataTypesFix.h', 'Solaris.h']
|