#!/usr/bin/env pythonimportosimportsysconfig_map={}defmap_config(source_dir,site_config):globalconfig_mapsource_dir=os.path.normpath(source_dir)source_dir=os.path.normcase(source_dir)site_config=os.path.normpath(site_config)config_map[source_dir]=site_config# Variables configured at build time.llvm_source_root="@LLVM_SOURCE_DIR@"llvm_obj_root="@LLVM_BINARY_DIR@"# Make sure we can find the lit package.sys.path.insert(0,os.path.join(llvm_source_root,'utils','lit'))# Set up some builtin parameters, so that by default the LLVM test suite# configuration file knows how to find the object tree.builtin_parameters={'build_mode':"@BUILD_MODE@"}@LLVM_LIT_CONFIG_MAP@builtin_parameters['config_map']=config_mapif__name__=='__main__':fromlit.mainimportmainmain(builtin_parameters)