Lines Matching refs:args

218         args = parser.parse_args()
222 if args.unset_env_varnames:
223 for env_var in args.unset_env_varnames:
231 if args.set_env_vars:
232 for env_var in args.set_env_vars:
239 if args.set_inferior_env_vars:
240 lldbtest_config.inferior_env = " ".join(args.set_inferior_env_vars)
242 if args.h:
245 if args.compiler:
246 configuration.compiler = os.path.abspath(args.compiler)
248 configuration.compiler = which(args.compiler)
251 '"%s" is not a valid compiler executable; aborting...', args.compiler
257 if platform_system == "Darwin" and args.apple_sdk:
259 'xcrun -sdk "%s" -find clang 2> /dev/null' % (args.apple_sdk)
269 if args.make:
270 configuration.make_path = args.make
272 if args.dsymutil:
273 configuration.dsymutil = args.dsymutil
278 if args.llvm_tools_dir:
279 configuration.llvm_tools_dir = args.llvm_tools_dir
280 configuration.filecheck = shutil.which("FileCheck", path=args.llvm_tools_dir)
281 configuration.yaml2obj = shutil.which("yaml2obj", path=args.llvm_tools_dir)
287 if args.libcxx_include_dir or args.libcxx_library_dir:
288 if args.lldb_platform_name:
292 elif not (args.libcxx_include_dir and args.libcxx_library_dir):
297 configuration.libcxx_include_dir = args.libcxx_include_dir
298 configuration.libcxx_include_target_dir = args.libcxx_include_target_dir
299 configuration.libcxx_library_dir = args.libcxx_library_dir
301 if args.channels:
302 lldbtest_config.channels = args.channels
304 if args.log_success:
305 lldbtest_config.log_success = args.log_success
307 if args.out_of_tree_debugserver:
308 lldbtest_config.out_of_tree_debugserver = args.out_of_tree_debugserver
311 if args.sysroot is not None:
312 configuration.sdkroot = args.sysroot
313 elif platform_system == "Darwin" and args.apple_sdk:
315 'xcrun --sdk "%s" --show-sdk-path 2> /dev/null' % (args.apple_sdk)
318 logging.error("No SDK found with the name %s; aborting...", args.apple_sdk)
321 if args.arch:
322 configuration.arch = args.arch
326 if args.categories_list:
328 test_categories.validate(args.categories_list, False)
334 if args.skip_categories:
336 args.skip_categories, False
339 if args.xfail_categories:
341 args.xfail_categories, False
344 if args.E:
345 os.environ["CFLAGS_EXTRAS"] = args.E
347 if args.dwarf_version:
348 configuration.dwarf_version = args.dwarf_version
353 if args.settings:
354 for setting in args.settings:
363 if args.d:
371 if args.f:
372 if any([x.startswith("-") for x in args.f]):
374 configuration.filters.extend(args.f)
376 if args.framework:
377 configuration.lldb_framework_path = args.framework
379 if args.executable:
381 lldbtest_config.lldbExec = os.path.abspath(args.executable)
383 lldbtest_config.lldbExec = which(args.executable)
386 "%s is not a valid executable to test; aborting...", args.executable
390 if args.excluded:
391 for excl_file in args.excluded:
394 if args.p:
395 if args.p.startswith("-"):
397 configuration.regexp = args.p
399 if args.t:
402 if args.v:
406 if args.sharp:
407 configuration.count = args.sharp
410 os.environ["LLDB_DISABLE_CRASH_DIALOG"] = str(args.disable_crash_dialog)
416 if args.lldb_platform_name:
417 configuration.lldb_platform_name = args.lldb_platform_name
418 if args.lldb_platform_url:
419 configuration.lldb_platform_url = args.lldb_platform_url
420 if args.lldb_platform_working_dir:
421 configuration.lldb_platform_working_dir = args.lldb_platform_working_dir
422 if platform_system == "Darwin" and args.apple_sdk:
423 configuration.apple_sdk = args.apple_sdk
424 if args.test_build_dir:
425 configuration.test_build_dir = args.test_build_dir
426 if args.lldb_module_cache_dir:
427 configuration.lldb_module_cache_dir = args.lldb_module_cache_dir
433 if args.clang_module_cache_dir:
434 configuration.clang_module_cache_dir = args.clang_module_cache_dir
440 if args.lldb_libs_dir:
441 configuration.lldb_libs_dir = args.lldb_libs_dir
442 if args.lldb_obj_root:
443 configuration.lldb_obj_root = args.lldb_obj_root
445 if args.enabled_plugins:
446 configuration.enabled_plugins = args.enabled_plugins
449 if len(args.args) > 0:
451 os.path.realpath(os.path.abspath(x)) for x in args.args