Lines Matching refs:test_args

939 def art_apex_test_main(test_args):  argument
940 if test_args.host and test_args.flattened:
943 if test_args.list and test_args.tree:
946 if test_args.size and not (test_args.list or test_args.tree):
949 if not test_args.flattened and not test_args.tmpdir:
952 if not test_args.flattened and not test_args.host and not test_args.debugfs:
956 if test_args.host:
958 if test_args.flavor not in [FLAVOR_DEBUG, FLAVOR_AUTO]:
962 test_args.flavor = FLAVOR_DEBUG
965 if test_args.flavor == FLAVOR_AUTO:
969 if fnmatch.fnmatch(test_args.apex, flavor_pattern):
970 test_args.flavor = flavor
972 if test_args.flavor == FLAVOR_AUTO:
974 FLAVOR_RELEASE, FLAVOR_DEBUG, FLAVOR_TESTING, test_args.apex)
978 if test_args.host:
979 apex_provider = HostApexProvider(test_args.apex, test_args.tmpdir)
981 if test_args.flattened:
982 apex_provider = TargetFlattenedApexProvider(test_args.apex)
984 apex_provider = TargetApexProvider(test_args.apex, test_args.tmpdir, test_args.debugfs)
989 if test_args.tree:
990 Tree(apex_provider, test_args.apex, test_args.size).print_tree()
992 if test_args.list:
993 List(apex_provider, test_args.size).print_list()
997 if test_args.bitness == BITNESS_AUTO:
1003 test_args.bitness = BITNESS_MULTILIB
1006 test_args.bitness = BITNESS_32
1009 test_args.bitness = BITNESS_64
1015 if test_args.bitness == BITNESS_32:
1017 elif test_args.bitness == BITNESS_64:
1020 assert test_args.bitness == BITNESS_MULTILIB
1024 if test_args.host:
1028 if test_args.flavor == FLAVOR_DEBUG or test_args.flavor == FLAVOR_TESTING:
1030 if not test_args.host:
1032 if test_args.flavor == FLAVOR_TESTING:
1038 if not test_args.host:
1067 test_args = test_parser.parse_args(['unused']) # For consistency.
1068 test_args.debugfs = '%s/bin/debugfs' % host_out
1069 test_args.tmpdir = '.'
1070 test_args.tree = False
1071 test_args.list = False
1072 test_args.bitness = BITNESS_AUTO
1075 if not os.path.exists(test_args.debugfs):
1077 test_args.debugfs)
1091 test_args.apex = '%s/system/apex/%s.apex' % (product_out, config['name'])
1092 if not os.path.exists(test_args.apex):
1094 logging.error("Cannot find APEX %s. Please build it first.", test_args.apex)
1096 test_args.flavor = config['flavor']
1097 test_args.host = config['host']
1098 failed = art_apex_test_main(test_args) != 0