LLVM Nightly Test Results For

\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; print "\n"; print "\n"; print "
\n"; print "
Nickname:{$row['nickname']}
uname:{$row['uname']}
Hardware:{$row['hardware']}
OS:{$row['os']}
Hostname:{$row['name']}
GCC:{$row['gcc']}
Machine ID:{$row['id']}
\n
\n"; /***************************************************** * * Printing link to build log * ******************************************************/ $buildfile=str_replace(" ", "_", $cur_date); if(file_exists("machines/$machine_id/$buildfile-Build-Log.txt")){ print "

". "View Build Log

\n"; } /***************************************************** * * Printing the times table * ******************************************************/ $previous_query = mysql_query("SELECT * FROM night WHERE \"$cur_date\" > added and machine=$machine_id ORDER BY added DESC") or die (mysql_error()); if(strpos($today_row['buildstatus'], "OK")===FALSE){ $disp=""; $sign="(+)"; } else{ $disp="none"; $sign="(-)"; } print "$sign Build Status\n"; print "
\n"; print "

Build Status

"; print "{$today_row['buildstatus']}
\n"; print "


\n"; /***************************************************** * * Printing changes in test suite * ******************************************************/ $new_tests=htmlifyTestResults(getNewTests($night_id, $previous_succesful_id)); if(strcmp($new_tests,"")===0){ $new_tests="None"; } $removed_tests=htmlifyTestResults(getRemovedTests($night_id, $previous_succesful_id)); if(strcmp($removed_tests,"")===0){ $removed_tests="None"; } $newly_passing_tests=htmlifyTestResults(getFixedTests($night_id, $previous_succesful_id)); if(strcmp($newly_passing_tests,"")===0){ $newly_passing_tests="None"; } $newly_failing_tests=htmlifyTestResults(getBrokenTests($night_id, $previous_succesful_id)); if(strcmp($newly_failing_tests,"")===0){ $newly_failing_tests="None"; } if(strpos($new_tests, "None")!==FALSE && strpos($removed_tests, "None")!==FALSE && strpos($newly_passing_tests, "None")!==FALSE && strpos($newly_failing_tests, "None")!==FALSE ){ $disp="none"; $sign="(-)"; } else{ $disp=""; $sign="(+)"; } print "$sign Test Suite Changes\n"; print "
\n"; print"

Test suite changes:

\n"; print"New tests:
\n"; print "$new_tests

\n"; print"Removed tests
\n"; print "$removed_tests

\n"; print"Newly passing tests:
\n"; print "$newly_passing_tests

\n"; print"Newly failing tests:
\n"; print "$newly_failing_tests

\n"; print "


\n"; /***************************************************** * * Printing failures in test suite * ******************************************************/ $failing_tests=htmlifyTestResults(getFailures($night_id)); if(strcmp($failing_tests,"")===0){ $newly_failing_tests="None"; } $disp="none"; $sign="(-)"; print "$sign Test Suite Failures\n"; print "
\n"; print"

Test suite failures:

\n"; print"Failing tests:
\n"; print "$failing_tests

\n"; print "


\n"; /***************************************************** * * Dejagnu result go here * ******************************************************/ $delta_exppass = $today_row['teststats_exppass']-$yesterday_row['teststats_exppass']; $delta_expfail = $today_row['teststats_expfail']-$yesterday_row['teststats_expfail']; $delta_unexpfail = $today_row['teststats_unexpfail']-$yesterday_row['teststats_unexpfail']; $unexpected_failures = htmlifyTestResults(getUnexpectedFailures($night_id)); if($delta_exppass==0 && $delta_expfail==0 && $delta_unexpfail==0 && strcmp($unexpected_failures, "")===0){ $disp="none"; $sign="(-)"; } else{ $disp=""; $sign="(+)"; } if(isset($today_row['teststats_exppass'])){ $exp_pass=$today_row['teststats_exppass']; } else{ $exp_pass=0; } if(isset($today_row['teststats_unexpfail'])){ $unexp_fail=$today_row['teststats_unexpfail']; } else{ $unexp_fail=0; } if(isset($today_row['teststats_expfail'])){ $exp_fail=$today_row['teststats_expfail']; } else{ $exp_fail=0; } print "$sign Dejagnu Tests\n"; print "
\n"; print"

Dejagnu tests:


\n"; print "\n"; print "\t\n"; print "\t\t\n"; print "\t\n"; $delta = $today_row['teststats_exppass']-$yesterday_row['teststats_exppass']; print "\t\t\n"; print "\t\n"; print "\t\n"; $delta = $today_row['teststats_unexpfail']-$yesterday_row['teststats_unexpfail']; print "\t\t\n"; print "\t\n"; print "\t\n"; $delta = $today_row['teststats_expfail']-$yesterday_row['teststats_expfail']; print "\t\t\n"; print "\t\n"; print "
# of testsChange from yesterday
Expected Passes:$exp_pass$delta
Unexpected Failures:$unexp_fail$delta
Expected Failures:$exp_fail$delta


\n"; print"Unexpected test failures:
\n"; print "$unexpected_failures

\n"; print "


\n"; /***************************************************** * * Printing warning information * ******************************************************/ if((strpos($today_row['warnings_added'], "none")==FALSE && strpos($today_row['warnings_removed'], "none")==FALSE) && (strcmp($today_row['warnings_added'], "")!=0 && strcmp($today_row['warnings_removed'], "")!=0)){ $disp=" "; $sign="(+)"; } else{ $disp="none"; $sign="(-)"; } print "$sign Warning Information\n"; print "
\n"; print"

Changes to warnings during the build:

\n"; print"New Warnings:
\n"; print "{$today_row['warnings_added']}

\n"; print"Removed Warnings:
\n"; print "{$today_row['warnings_removed']}
\n"; print"

Warnings during the build:

{$today_row['warnings']}
\n"; print "


\n"; /***************************************************** * * Printing execution * ******************************************************/ print "(-) Execution Times\n"; print "
\n"; print"

Execution times in seconds:


\n"; print "\n"; print "\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\n"; print "\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\n"; if( $previous_row = mysql_fetch_array($previous_query) ){ print "\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\n"; print "\t\n"; print "\t\t\n"; if($previous_row['getcvstime_cpu']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['getcvstime_cpu'] - $previous_row['getcvstime_cpu'])/$previous_row['getcvstime_cpu']) * 100,2); $color=DetermineColor($delta, "white"); print "\t\t\n"; } $color="white"; if($previous_row['getcvstime_wall']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['getcvstime_wall'] - $previous_row['getcvstime_wall'])/$previous_row['getcvstime_wall']) * 100,2); print "\t\t\n"; } $color="white"; if($previous_row['configuretime_cpu']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['configuretime_cpu'] - $previous_row['configuretime_cpu'])/$previous_row['configuretime_cpu']) * 100,2); $color=DetermineColor($delta, "white"); print "\t\t\n"; } $color="white"; if($previous_row['configuretime_wall']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['configuretime_wall'] - $previous_row['configuretime_wall'])/$previous_row['configuretime_wall']) * 100,2); print "\t\t\n"; } $color="white"; if($previous_row['buildtime_cpu']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['buildtime_cpu'] - $previous_row['buildtime_cpu'])/$previous_row['buildtime_cpu']) * 100,2); $color=DetermineColor($delta, "white"); print "\t\t\n"; } $color="white"; if($previous_row['buildtime_wall']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['buildtime_wall'] - $previous_row['buildtime_wall'])/$previous_row['buildtime_wall']) * 100,2); print "\t\t\n"; } $color="white"; if($previous_row['dejagnutime_cpu']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['dejagnutime_cpu'] - $previous_row['dejagnutime_cpu'])/$previous_row['dejagnutime_cpu']) * 100,2); $color=DetermineColor($delta, "white"); print "\t\t\n"; } $color="white"; if($previous_row['dejagnutime_wall']==0){ print "\t\t\n"; } else{ $delta = round((($today_row['dejagnutime_wall'] - $previous_row['dejagnutime_wall'])/$previous_row['dejagnutime_wall']) * 100,2); print "\t\t\n"; } print "\t\n"; } mysql_free_result($previous_query); print "
CVS cpuCVS wallConfigure cpuConfigure wallBuild cpuBuild wallDejagnu cpuDejagnu wall
$cur_date{$today_row['getcvstime_cpu']}{$today_row['getcvstime_wall']}{$today_row['configuretime_cpu']}{$today_row['configuretime_wall']}{$today_row['buildtime_cpu']}{$today_row['buildtime_wall']}{$today_row['dejagnutime_cpu']}{$today_row['dejagnutime_wall']}
Previous nightly test ({$previous_row['added']}){$previous_row['getcvstime_cpu']}{$previous_row['getcvstime_wall']}{$previous_row['configuretime_cpu']}{$previous_row['configuretime_wall']}{$previous_row['buildtime_cpu']}{$previous_row['buildtime_wall']}{$previous_row['dejagnutime_cpu']}{$previous_row['dejagnutime_wall']}
% change-$delta-$delta-$delta-$delta-$delta-$delta-$delta-$delta
\n"; print "


\n"; /***************************************************** * * Printing CVS information * ******************************************************/ print "(-) CVS information\n"; print "
\n"; print"

CVS information:


\n"; $query=mysql_query("SELECT * FROM night WHERE id=$night_id") or die (mysql_error()); $row = mysql_fetch_array($query); mysql_free_result($query); $com_users = $row['cvs_usersadd']; $co_users = $row['cvs_usersco']; $com_users = str_replace("\n","
",$com_users); $co_users = str_replace("\n","
",$co_users); print "\n"; print "\t\n"; print "\t\t\n"; print "\t\n"; print "\t\n"; print "\t\t\n"; print "\t\n"; print "
Users who commitedUsers who checked out
$com_users$co_users


\n"; print"Added files:
\n"; $added_files = $row['cvs_added']; if(strcmp($added_files,"")!=0){ $added_files = str_replace("\n","
",$added_files); print "\n"; print "\t\n"; print "\t\t\n"; print "\t\n"; print "
$added_files


\n"; } else{ print "No removed files

\n"; } print"Removed files:
\n"; $removed_files = $row['cvs_removed']; if(strcmp($removed_files,"")!=0){ $removed_files = str_replace("\n","
",$removed_files); print "\n"; print "\t\n"; print "\t\t\n"; print "\t\n"; print "
$removed_files


\n"; } else{ print "No removed files

\n"; } print"Modified files:
\n"; $modified_files = $row['cvs_modified']; if(strcmp($modified_files,"")!=0){ $modified_files = str_replace("\n","
",$modified_files); print "\n"; print "\t\n"; print "\t\t\n"; print "\t\n"; print "
$modified_files


\n"; } else{ print "No removed files

\n"; } print "


\n"; /***************************************************** * * Printing file size information * ******************************************************/ print "(-) File Size information\n"; print "
\n"; print"

File Size information:


\n"; print "
\n"; print "\n"; print "\n"; print "\n"; $all_data=buildFileSizeTable($machine_id, $night_id); $formatted_num=number_format($all_data['Total Sum'][0],0,".",","); print "Total size: $formatted_num bytes
\n"; print "Percent difference from previous test: {$all_data['Total Sum'][1]}
\n"; print "Percent difference from five tests ago: {$all_data['Total Sum'][3]}

\n"; print "\n"; print "\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\n"; print "\t\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\t\n"; foreach (array_keys($all_data) as $d){ //if($all_data["$d"][1]!=0 || $all_data["$d"][3]!=0){ print "\t\n"; if(strcmp($d, "Total Sum")!=0){ print "\t\t\n"; print "\t\t\n"; if($all_data["$d"][1]!=0){ $color="bgcolor="; $color.=DetermineColor($all_data["$d"][1], "\"\""); } else{ $color=""; } print "\t\t\n"; print "\t\t\n"; if($all_data["$d"][3]!=0){ $color="bgolor="; $color.=DetermineColor($all_data["$d"][3], "white"); } else{ $color=""; } print "\t\t\n"; print "\t\t\n"; print "\t\n"; //} } print "
FileFile Size in Bytes% difference from previous testByte difference from previous test% difference from five tests agoByte difference from five tests ago
\n"; } else{ print "\t\t\n"; } print "\t\t$d{$all_data["$d"][0]}{$all_data["$d"][1]}{$all_data["$d"][2]}{$all_data["$d"][3]}{$all_data["$d"][4]}
\n"; print " | "; print "\n"; print "
\n"; print "


\n"; /***************************************************** * * ending sidebar table here * ******************************************************/ print "\n"; /***************************************************** * * Test program statistics * ******************************************************/ print"

Program tests:


\n"; $today_results = GetDayResults($today_row['id'], $category_array); if(isset($yesterday_row['id'])){ $yesterday_results = GetDayResults($yesterday_row['id'], $category_array); $percent_difference = CalculateChangeBetweenDays($yesterday_results, $today_results,.2); } /********************** external table **********************/ print "
\n"; print "\n"; print "\n"; print "\n"; print"External tests:
\n"; print "
\n"; #creating the black border around the table print "\n"; print "\t\n"; print "\t\t\n"; $index=0; //here to ensure we dont print %diff for GCC comparisons foreach ($category_print_array as $x){ print "\t\t\n"; if($index<10 && isset($percent_difference)){ print "\t\t\n"; } $index++; } print "\t\n"; print "\t\n"; print "\t\t\n"; $index=0; foreach ($category_print_array as $x){ if($index<10 && isset($percent_difference)){ $col_width=2; } else{ $col_width=1; } print "\t\t\n"; $index++; } print "\t\n"; $row_color=1; $count=0; foreach(array_keys($today_results) as $program){ if(strcmp($today_results["$program"][0],"external")==0){ if($row_color % 2 == 0){ $def_color="white"; } else{ $def_color="#DDDDDD"; } print "\t\n"; print "\t\t\n"; for($y=1; $y{$today_results["$program"][$y]}\n"; if($y<11 && isset($percent_difference)){ $delta=round($percent_difference["$program"][$y-1], 2); $color=DetermineColor($delta, $def_color); print "\t\t\n"; } } print "\t\n"; $row_color++; if($row_color > 4){ $row_color=1; } $count++; }//end if strcmp }//end foreach print "
ProgramToday's $x% change in $x
\n"; print "\n"; print "\n"; print "
{$category_print_array_description[$index]}
\n"; print "
?
\n"; print "
$program$delta
\n"; print "


\n"; #ending black border around table /********************** Multisource table **********************/ print"Multisource tests:
\n"; print "
\n"; #creating the black border around the table print "\n"; print "\t\n"; print "\t\t\n"; $index=0; //here to ensure we dont print %diff for GCC comparisons foreach ($category_print_array as $x){ print "\t\t\n"; if($index<10 && isset($percent_difference)){ print "\t\t\n"; } $index++; } print "\t\n"; print "\t\n"; print "\t\t\n"; $index=0; foreach ($category_print_array as $x){ if($index<10 && isset($percent_difference)){ $col_width=2; } else{ $col_width=1; } print "\t\t\n"; $index++; } print "\t\n"; $row_color=1; $count=0; foreach(array_keys($today_results) as $program){ if(strcmp($today_results["$program"][0],"multisource")==0){ if($row_color % 2 == 0){ $def_color="white"; } else{ $def_color="#DDDDDD"; } print "\t\n"; print "\t\t\n"; for($y=1; $y{$today_results["$program"][$y]}\n"; if($y<11 && isset($percent_difference)){ $delta=round($percent_difference["$program"][$y-1], 2); $color=DetermineColor($delta, $def_color); print "\t\t\n"; } } print "\t\n"; $row_color++; if($row_color > 4){ $row_color=1; } $count++; }//end if strcmp }//end foreach print "
ProgramToday's $x% change in $x
\n"; print "\n"; print "\n"; print "
{$category_print_array_description[$index]}
\n"; print "
?
\n"; print "
$program$delta
\n"; print "


\n"; #ending black border around table print " | "; print "\n"; print "
\n"; /********************** Singlesource table **********************/ print"Singlesource tests:
\n"; print "
\n"; #creating the black border around the table print "\n"; print "\t\n"; print "\t\t\n"; $index=0; //here to ensure we dont print %diff for GCC comparisons foreach ($category_print_array as $x){ print "\t\t\n"; if($index<10 && isset($percent_difference)){ print "\t\t\n"; } $index++; } print "\t\n"; print "\t\n"; print "\t\t\n"; $index=0; foreach ($category_print_array as $x){ if($index<10 && isset($percent_difference)){ $col_width=2; } else{ $col_width=1; } print "\t\t\n"; $index++; } print "\t\n"; $row_color=1; $count=0; foreach(array_keys($today_results) as $program){ if(strcmp($today_results["$program"][0],"singlesource")==0){ if($row_color % 2 == 0){ $def_color="white"; } else{ $def_color="#DDDDDD"; } print "\t\n"; print "\t\t\n"; for($y=1; $y{$today_results["$program"][$y]}\n"; if($y<11 && isset($percent_difference)){ $delta=round($percent_difference["$program"][$y-1], 2); $color=DetermineColor($delta, $def_color); print "\t\t\n"; } } print "\t\n"; $row_color++; if($row_color > 4){ $row_color=1; } $count++; }//end if strcmp }//end foreach print "
ProgramToday's $x% change in $x
\n"; print "\n"; print "\n"; print "
{$category_print_array_description[$index]}
\n"; print "
?
\n"; print "
$program$delta
\n"; print "


\n"; #ending black border around table mysql_close($mysql_link); ?>