if (!$__SPGENVPM ) { use spg::env; } if (!$__IITBUILDPM ) { use iit::build; } if (!$__IITBUILDCOMPONENTVCPM ) { use iit::buildcomponentvc; } sub BeginBuildCustom { my($rc) = 1; if (IsMemberOf("BBT", @lArgs)) { if (!IsMemberOf("ICECAP", @lArgs) && IsMemberOf("ICECAP", @lAllowedBuilds)) { push(@lArgs, "ICECAP"); } } return($rc); } sub EndBuildCustom { my($tmpStrBuildMsg) = $strBuildMsg; $strBuildMsg = ""; my($nGoodBuilds) = $nTotalBuilds - $nFailedBuilds; my($nGoodMSIs) = $nTotalMSIs - $nFailedMSIs; my($nPercentBuildPass) = (($nTotalBuilds == 0) ? 0 : $nGoodBuilds * 100 / $nTotalBuilds); $nPercentBuildPass =~ s/(\.\d).*/$1/; my($nPercentMSIPass) = (($nTotalMSIs == 0) ? 0 : $nGoodMSIs * 100 / $nTotalMSIs); $nPercentMSIPass =~ s/(\.\d).*/$1/; my($sBVTCompKills) = ""; if (@lBVTCompKills != ()) { $sBVTCompKills = "\n* BVT".((@lBVTCompKills == 1) ? "" : "s")." ".join(", ", @lBVTCompKills)." failed to " ."terminate, results above are based on BVTs that completed\n\n"; } my($sBVTCompBFails) = ""; if (@lBVTCompBFails != ()) { $sBVTCompBFails = "\n* BVT".((@lBVTCompBFails == 1) ? "" : "s")." ".join(", ", @lBVTCompBFails).".dll failed to " ."build, results above are based on BVT components that built successfully\n\n"; } PrintL("
Build Success | " ."80) ? "yellow" : "red")) .">", PL_MSG | PL_NOSTD); PrintLTip("".$nPercentBuildPass."%", $nGoodBuilds." of ".$nTotalBuilds, PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL(" | " ."
MSI Build Success | " ."60) ? "yellow" : "red")) .">", PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintLTip("".$nPercentMSIPass."%", $nGoodMSIs." of ".$nTotalMSIs, PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL(" | " ."
BVT Success | " ."50) ? "yellow" : "red")) .">", PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL("".$g_nBVTPassedPercent."%"."", PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL(" |