2020-08-03 11:51:14 +02:00
|
|
|
#!@Python3_EXECUTABLE@
|
2019-01-14 21:02:11 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2010-08-02 02:39:42 +02:00
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2017-09-16 00:10:46 +02:00
|
|
|
config_map = {}
|
|
|
|
|
|
|
|
def map_config(source_dir, site_config):
|
|
|
|
global config_map
|
2017-09-19 01:36:35 +02:00
|
|
|
source_dir = os.path.realpath(source_dir)
|
2020-04-15 23:17:18 +02:00
|
|
|
source_dir = os.path.normcase(source_dir)
|
2017-09-16 00:10:46 +02:00
|
|
|
site_config = os.path.normpath(site_config)
|
2020-04-15 23:17:18 +02:00
|
|
|
config_map[source_dir] = site_config
|
2017-09-16 00:10:46 +02:00
|
|
|
|
2010-08-02 02:39:42 +02:00
|
|
|
# Set up some builtin parameters, so that by default the LLVM test suite
|
|
|
|
# configuration file knows how to find the object tree.
|
2020-05-12 01:04:28 +02:00
|
|
|
builtin_parameters = { 'build_mode' : '@BUILD_MODE@' }
|
2017-09-16 00:10:46 +02:00
|
|
|
|
|
|
|
@LLVM_LIT_CONFIG_MAP@
|
|
|
|
|
|
|
|
builtin_parameters['config_map'] = config_map
|
2017-01-17 08:10:55 +01:00
|
|
|
|
2020-04-07 02:38:26 +02:00
|
|
|
# Make sure we can find the lit package.
|
2020-05-12 01:04:28 +02:00
|
|
|
llvm_source_root = path(r'@LLVM_SOURCE_DIR@')
|
2020-04-07 02:38:26 +02:00
|
|
|
sys.path.insert(0, os.path.join(llvm_source_root, 'utils', 'lit'))
|
|
|
|
|
2010-08-02 02:39:42 +02:00
|
|
|
if __name__=='__main__':
|
2016-10-11 01:02:42 +02:00
|
|
|
from lit.main import main
|
|
|
|
main(builtin_parameters)
|