Lines Matching refs:target
184 Target* target; member
270 m_currentAction->target->testPassCount++; in OnTestStatus()
281 line << ": " << m_currentAction->target->name << ':' << className << "\\#" << testName; in OnTestStatus()
288 m_currentAction->target->testFailCount++; in OnTestStatus()
290 m_currentAction->target->name.c_str(), className.c_str(), in OnTestStatus()
312 m_currentAction->target->unknownFailureCount++; in OnSessionStatus()
534 Target* target = new Target(flagBuild || !anyPhases, flagInstall || !anyPhases, in parse_args() local
541 delete target; in parse_args()
544 target->name = arg; in parse_args()
546 target->name.assign(arg, 0, colonPos); in parse_args()
553 target->actions.push_back(string(arg, beginPos, commaPos)); in parse_args()
558 target->actions.push_back(string(arg, beginPos, commaPos-beginPos)); in parse_args()
564 options->targets.push_back(target); in parse_args()
686 Target* target = targets[i]; in run_phases() local
687 map<string,Module>::iterator mod = modules.find(target->name); in run_phases()
689 target->module = mod->second; in run_phases()
691 print_error("Error: Could not find module: %s", target->name.c_str()); in run_phases()
694 g_escapeBold, target->name.c_str(), g_escapeEndColor); in run_phases()
705 Target* target = targets[i]; in run_phases() local
706 if (target->build) { in run_phases()
707 goals.push_back(target->name); in run_phases()
721 Target* target = targets[i]; in run_phases() local
722 if (target->install) { in run_phases()
723 for (size_t j=0; j<target->module.installed.size(); j++) { in run_phases()
724 const string& file = target->module.installed[j]; in run_phases()
729 if (!target->build) { in run_phases()
740 installApks.push_back(InstallApk(file, !target->build)); in run_phases()
744 if (target->module.HasClass(NATIVE_TESTS) && starts_with(file, dataPath)) { in run_phases()
900 Target* target = targets[i]; in run_phases() local
901 if (target->test && target->module.HasClass(NATIVE_TESTS)) { in run_phases()
905 for (size_t j=0; j<target->module.installed.size(); j++) { in run_phases()
906 string filename = target->module.installed[j]; in run_phases()
911 if (leafname(filename) != target->module.name) { in run_phases()
923 if (target->actions.size() > 0) { in run_phases()
925 target->testActionCount++; in run_phases()
928 for (size_t k=0; k<target->actions.size(); k++) { in run_phases()
929 string actionString = target->actions[k]; in run_phases()
934 if (k != target->actions.size()-1) { in run_phases()
950 target->testPassCount++; in run_phases()
952 target->testFailCount++; in run_phases()
964 Target* target = targets[i]; in run_phases() local
965 if (target->test) { in run_phases()
966 for (size_t j=0; j<target->module.installed.size(); j++) { in run_phases()
967 string filename = target->module.installed[j]; in run_phases()
983 for (size_t k=0; k<target->actions.size(); k++) { in run_phases()
984 string actionString = target->actions[k]; in run_phases()
989 target->module.name.c_str()); in run_phases()
995 action.target = target; in run_phases()
997 target->testActionCount++; in run_phases()
1007 target->module.name.c_str()); in run_phases()
1014 action.target = target; in run_phases()
1016 target->testActionCount++; in run_phases()
1035 action.target->actionsWithNoTests = true; in run_phases()
1039 total, total > 1 ? "s" : "", action.target->name.c_str()); in run_phases()
1129 Target* target = targets[i]; in run_phases() local
1130 if (target->test) { in run_phases()
1131 size_t len = target->name.length(); in run_phases()
1139 Target* target = targets[i]; in run_phases() local
1140 if (target->testActionCount > 0) { in run_phases()
1141 printf(" %s%s", target->name.c_str(), padding.c_str() + target->name.length()); in run_phases()
1142 if (target->unknownFailureCount > 0) { in run_phases()
1146 } else if (target->actionsWithNoTests) { in run_phases()
1148 target->testPassCount, target->testFailCount, g_escapeEndColor); in run_phases()
1150 } else if (target->testFailCount > 0) { in run_phases()
1151 printf(" %d passed, %s%d failed%s\n", target->testPassCount, in run_phases()
1152 g_escapeRedBold, target->testFailCount, g_escapeEndColor); in run_phases()
1156 target->testPassCount, g_escapeEndColor, target->testFailCount); in run_phases()