Add update_test.py script.
[polly-mirror.git] / test / lit.site.cfg.in
blobbe469a5461d80741d2fed6f52a77309c6ce0ee30
1 ## Autogenerated by LLVM/Polly configuration.
2 # Do not edit!
3 config.llvm_src_root = "@LLVM_SOURCE_DIR@"
4 config.llvm_obj_root = "@LLVM_BINARY_DIR@"
5 config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6 config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
7 config.polly_obj_root = "@POLLY_BINARY_DIR@"
8 config.polly_lib_dir = "@POLLY_LIB_DIR@"
9 config.target_triple = "@TARGET_TRIPLE@"
10 config.enable_gpgpu_codegen = "@CUDALIB_FOUND@"
11 config.link_polly_into_tools = "@LINK_POLLY_INTO_TOOLS@"
13 ## Check the current platform with regex
14 import re
15 EAT_ERR_ON_X86 = ' '
16 if (re.match(r'^x86_64*', '@TARGET_TRIPLE@') == None) :
17   EAT_ERR_ON_X86 = '|| echo \"error is eaten\"'
19 # Support substitution of the tools and libs dirs with user parameters. This is
20 # used when we can't determine the tool dir at configuration time.
21 try:
22     config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
23     config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
24 except KeyError:
25     e = sys.exc_info()[1]
26     key, = e.args
27     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
29 if config.link_polly_into_tools == '' or \
30    config.link_polly_into_tools.lower() == '0' or \
31    config.link_polly_into_tools.lower() == 'n' or \
32    config.link_polly_into_tools.lower() == 'no' or \
33    config.link_polly_into_tools.lower() == 'off' or \
34    config.link_polly_into_tools.lower() == 'false' or \
35    config.link_polly_into_tools.lower() == 'notfound' or \
36    config.link_polly_into_tools.lower() == 'link_polly_into_tools-notfound':
37     config.substitutions.append(('%loadPolly', '-load '
38                                  + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'
39                                  + ' -polly-process-unprofitable '
40                                  ))
41 else:
42     config.substitutions.append(('%loadPolly', ''
43                                  + ' -polly-process-unprofitable '
44                                  ))
46 # Let the main config do the real work.
47 lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg")