opnsense-src/utils/C++Tests/LLVM-Syntax/lit.local.cfg

25 lines
1.1 KiB
INI
Raw Normal View History

2009-10-14 14:03:49 -04: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-15 13:49:47 -05:00
recursive=True,
2009-10-14 14:03:49 -04:00
pattern='^(.*\\.h|[^.]*)$',
extra_cxx_args=['-D__STDC_LIMIT_MACROS',
'-D__STDC_CONSTANT_MACROS',
2009-12-01 06:08:04 -05:00
'-Werror',
2009-10-14 14:03:49 -04:00
'-I%s/include' % root.llvm_src_root,
'-I%s/include' % root.llvm_obj_root])
2009-11-18 09:59:57 -05:00
config.excludes = ['AbstractTypeUser.h', 'DAGISelHeader.h',
2009-12-15 13:49:47 -05:00
'AIXDataTypesFix.h', 'Solaris.h']