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 config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang, 14 dir='%s/include/llvm' % root.llvm_src_root, 15 recursive=True, 16 pattern='^(.*\\.h|[^.]*)$', 17 extra_cxx_args=['-D__STDC_LIMIT_MACROS', 18 '-D__STDC_CONSTANT_MACROS', 19 '-Werror', 20 '-I%s/include' % root.llvm_src_root, 21 '-I%s/include' % root.llvm_obj_root]) 22 23 config.excludes = ['AbstractTypeUser.h', 'DAGISelHeader.h', 24 'AIXDataTypesFix.h', 'Solaris.h'] 25