Lines Matching refs:config

14 config.name = 'lldb-api'
17 config.suffixes = ['.py']
20 config.test_source_root = os.path.dirname(__file__)
23 config.test_exec_root = os.path.join(config.lldb_obj_root, 'test', 'API')
38 [config.cmake_cxx_compiler,
58 copied_python = os.path.join(config.lldb_build_directory, 'copied-python')
64 config.python_executable,
92 return getattr(config, attr, None)
105 if 'Address' in config.llvm_use_sanitizer:
106 config.environment['ASAN_OPTIONS'] = 'detect_stack_use_after_return=1'
107 if 'Darwin' in config.host_os:
108 config.environment['DYLD_INSERT_LIBRARIES'] = find_sanitizer_runtime(
111 if 'Thread' in config.llvm_use_sanitizer:
112 if 'Darwin' in config.host_os:
113 config.environment['DYLD_INSERT_LIBRARIES'] = find_sanitizer_runtime(
116 if 'DYLD_INSERT_LIBRARIES' in config.environment and platform.system() == 'Darwin':
117 config.python_executable = find_python_interpreter()
125 (config.llvm_shlib_dir, config.llvm_libs_dir,
126 config.environment.get(shlibpath_var, '')))
127 config.environment[shlibpath_var] = shlibpath
136 config.available_features.add('lldb-simulator-ios')
139 config.available_features.add('lldb-simulator-watchos')
142 config.available_features.add('lldb-simulator-tvos')
156 dotest_cmd = [os.path.join(config.lldb_src_root, 'test', 'API', 'dotest.py')]
159 dotest_cmd.extend(config.dotest_args_str.split(';'))
163 dotest_cmd += ['--env', 'LLVM_LIBS_DIR=' + config.llvm_libs_dir]
167 dotest_cmd += ['--env', 'LLVM_INCLUDE_DIR=' + config.llvm_include_dir]
171 dotest_cmd += ['--env', 'LLVM_TOOLS_DIR=' + config.llvm_tools_dir]
180 if env_var in config.environment:
181 dotest_cmd += ['--inferior-env', env_var + '=' + config.environment[env_var]]
184 dotest_cmd += ['--arch', config.test_arch]
187 dotest_cmd += ['--build-dir', config.lldb_build_directory]
190 delete_module_cache(config.lldb_module_cache)
191 dotest_cmd += ['--lldb-module-cache-dir', config.lldb_module_cache]
194 delete_module_cache(config.clang_module_cache)
195 dotest_cmd += ['--clang-module-cache-dir', config.clang_module_cache]
198 dotest_cmd += ['--executable', config.lldb_executable]
201 dotest_cmd += ['--compiler', config.test_compiler]
204 dotest_cmd += ['--dsymutil', config.dsymutil]
207 dotest_cmd += ['--llvm-tools-dir', config.llvm_tools_dir]
210 dotest_cmd += ['--server', config.server]
213 dotest_cmd += ['--lldb-libs-dir', config.lldb_libs_dir]
216 dotest_cmd += ['--framework', config.lldb_framework_dir]
218 if 'lldb-repro-capture' in config.available_features or \
219 'lldb-repro-replay' in config.available_features:
222 if 'lldb-simulator-ios' in config.available_features:
225 elif 'lldb-simulator-watchos' in config.available_features:
228 elif 'lldb-simulator-tvos' in config.available_features:
233 for plugin in config.enabled_plugins:
241 dotest_cmd.extend(shlex.split(config.dotest_lit_args_str))
244 sys.path.append(os.path.join(config.lldb_src_root, "test", "API"))
248 config.test_format = lldbtest.LLDBTest(dotest_cmd)
251 config.environment['TERM'] = os.getenv('TERM', default='vt100')
255 config.environment['FREEBSD_LEGACY_PLUGIN'] = os.environ[
260 config.environment['XDG_CACHE_HOME'] = os.environ['XDG_CACHE_HOME']