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()
723 Target* target = targets[i]; in run_phases() local
724 if (target->install) { in run_phases()
725 for (size_t j=0; j<target->module.installed.size(); j++) { in run_phases()
726 const string& file = target->module.installed[j]; in run_phases()
731 if (!target->build) { in run_phases()
743 installApks.push_back(InstallApk(file, !target->build)); in run_phases()
747 if (target->module.HasClass(NATIVE_TESTS) && starts_with(file, dataPath)) { in run_phases()
903 Target* target = targets[i]; in run_phases() local
904 if (target->test && target->module.HasClass(NATIVE_TESTS)) { in run_phases()
908 for (size_t j=0; j<target->module.installed.size(); j++) { in run_phases()
909 string filename = target->module.installed[j]; in run_phases()
914 if (leafname(filename) != target->module.name) { in run_phases()
926 if (target->actions.size() > 0) { in run_phases()
928 target->testActionCount++; in run_phases()
931 for (size_t k=0; k<target->actions.size(); k++) { in run_phases()
932 string actionString = target->actions[k]; in run_phases()
937 if (k != target->actions.size()-1) { in run_phases()
953 target->testPassCount++; in run_phases()
955 target->testFailCount++; in run_phases()
967 Target* target = targets[i]; in run_phases() local
968 if (target->test) { in run_phases()
969 for (size_t j=0; j<target->module.installed.size(); j++) { in run_phases()
970 string filename = target->module.installed[j]; in run_phases()
987 for (size_t k=0; k<target->actions.size(); k++) { in run_phases()
988 string actionString = target->actions[k]; in run_phases()
993 target->module.name.c_str()); in run_phases()
999 action.target = target; in run_phases()
1001 target->testActionCount++; in run_phases()
1011 target->module.name.c_str()); in run_phases()
1018 action.target = target; in run_phases()
1020 target->testActionCount++; in run_phases()
1039 action.target->actionsWithNoTests = true; in run_phases()
1043 total, total > 1 ? "s" : "", action.target->name.c_str()); in run_phases()
1133 Target* target = targets[i]; in run_phases() local
1134 if (target->test) { in run_phases()
1135 size_t len = target->name.length(); in run_phases()
1143 Target* target = targets[i]; in run_phases() local
1144 if (target->testActionCount > 0) { in run_phases()
1145 printf(" %s%s", target->name.c_str(), padding.c_str() + target->name.length()); in run_phases()
1146 if (target->unknownFailureCount > 0) { in run_phases()
1150 } else if (target->actionsWithNoTests) { in run_phases()
1152 target->testPassCount, target->testFailCount, g_escapeEndColor); in run_phases()
1154 } else if (target->testFailCount > 0) { in run_phases()
1155 printf(" %d passed, %s%d failed%s\n", target->testPassCount, in run_phases()
1156 g_escapeRedBold, target->testFailCount, g_escapeEndColor); in run_phases()
1160 target->testPassCount, g_escapeEndColor, target->testFailCount); in run_phases()