LLVM Machine Test Results For

\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; //print $row['uname']; 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"; $result = getNightsResource($machine); $recent=mysql_fetch_array($result); $recent_id=$recent['id']; $cur_date = $recent['added']; $old=mysql_fetch_array($result); $old_id=$old['id']; mysql_free_result($result); include("ProgramResults.php"); if(is_numeric($recent_id) && is_numeric($old_id)){ $today_results = GetDayResults($recent_id, $category_array); $yesterday_results = GetDayResults($old_id, $category_array); $percent_difference = CalculateChangeBetweenDays($yesterday_results, $today_results); /* note: $medium_change, $large_change, and $crazy_change are defined in ProgramResult.php */ print "
\n"; print "\n"; Print "\n"; Print "\n"; Print "\n"; print "
$medium_change % differences from yesterday: $medium_number
$large_change % differences from yesterday: $large_number
$crazy_change % differences from yesterday: $crazy_number
\n"; print "
"; print "\n"; print "\n"; print "
The number of measurements that signifigantly
changed from the previous test.
\n"; print "
?
\n"; print "
\n"; } print "
\n"; print "\n"; print "\n"; print "\n"; print "\n"; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $result = getNightsResource($machine); $line=1; $row = mysql_fetch_array($result); $x=0; while($x<10 && $prev_row = mysql_fetch_array($result)){ $warnings =""; if(strcmp($row['warnings'],"")!=0){ $warnings=$row['warnings']; } $num_warnings = preg_match_all('/warning/', $warnings, $match); if(strpos($row['buildstatus'],"OK")===FALSE){ print "\t\n"; $build_ok=0; } else if($line % 2 ==0){ print "\t\n"; $build_ok=1; } else{ print "\t\n"; $build_ok=1; } $line++; #this test is to test whether the test that precedes this failed, #thus the test would have bogus data and we shouldnt color based on its #results if(strpos($prev_row['buildstatus'],"OK")===false){ $prev_build_ok=0; } else{ $prev_build_ok=1; } /*~~~~~~~~~~~~ Date of test ~~~~~~~~~~~~*/ echo ""; /*~~~~~~~~~~~~ Get CVS Wall Time ~~~~~~~~~~~~*/ echo ""; /*~~~~~~~~~~~~ Configure Time CPU ~~~~~~~~~~~~*/ if($prev_row['configuretime_cpu']!=0 && $build_ok && $prev_build_ok){ $delta = round(( ($prev_row['configuretime_cpu'] - $row['configuretime_cpu']) / $prev_row['configuretime_cpu'] ) * 100,2); if ($delta > 20){ print ""; } else if ($delta < -20){ print ""; } else{ print ""; } } else{ print ""; } /*~~~~~~~~~~~~ Configure Time Wall ~~~~~~~~~~~~*/ echo ""; /*~~~~~~~~~~~~ Build Time CPU ~~~~~~~~~~~~*/ if($prev_row['buildtime_cpu']!=0 && $build_ok && $prev_build_ok){ $delta = round(( ($prev_row['buildtime_cpu'] - $row['buildtime_cpu']) / $prev_row['buildtime_cpu'] ) * 100,2); if ($delta > 10){ print ""; } else if ($delta < -10){ print ""; } else{ print ""; } } else{ print ""; } /*~~~~~~~~~~~~ Build Time Wall ~~~~~~~~~~~~*/ echo ""; /*~~~~~~~~~~~~ Dejagnu Time CPU ~~~~~~~~~~~~*/ if($prev_row['dejagnutime_cpu']!=0 && $build_ok && $prev_build_ok){ $delta = round( ( ($prev_row['dejagnutime_cpu'] - $row['dejagnutime_cpu']) / $prev_row['dejagnutime_cpu'] ) * 100,2); if ($delta > 10){ print ""; } else if ($delta < -10){ print ""; } else{ print ""; } } else{ print ""; } /*~~~~~~~~~~~~ Dejagnu Time Wall ~~~~~~~~~~~~*/ echo ""; /*~~~~~~~~~~~~ # of expected passes ~~~~~~~~~~~~*/ if ($row['teststats_exppass'] > $prev_row['teststats_exppass'] && $build_ok && $prev_build_ok){ $color="#CCFFCC"; } else if ($row['teststats_exppass'] < $prev_row['teststats_exppass'] && $build_ok && $prev_build_ok){ $color="#FFAAAA"; } else{ $color="white"; } if(!$build_ok){ print ""; } else{ print ""; } /*~~~~~~~~~~~~ # of unexpected failures ~~~~~~~~~~~~*/ if ($row['teststats_unexpfail'] < $prev_row['teststats_unexpfail'] && $build_ok && $prev_build_ok){ $color="#CCFFCC"; } else if ($row['teststats_unexpfail'] > $prev_row['teststats_unexpfail'] && $build_ok && $prev_build_ok){ $color="#FFAAAA"; } else{ $color="white"; } if(!$build_ok){ print ""; } else if($row['teststats_exppass']!=0){ print ""; } else{ print ""; } /*~~~~~~~~~~~~ # of expected failures ~~~~~~~~~~~~*/ if ($row['teststats_expfail'] < $prev_row['teststats_expfail'] && $build_ok && $prev_build_ok){ print ""; } else if ($row['teststats_expfail'] > $prev_row['teststats_expfail'] && $build_ok && $prev_build_ok){ print ""; } else{ print ""; } /*~~~~~~~~~~~~ Number Of Warnings ~~~~~~~~~~~~*/ if($num_warnings>0){ print "\t\n"; } else{ print "\t\n"; } /*~~~~~~~~~~~~ Link to test page ~~~~~~~~~~~~*/ echo ""; echo ""; $row = $prev_row; $x++; } #end while mysql_free_result($result); /******************************* * * Taking care of last row *******************************/ if($line % 2 ==0){ print "\t\n"; } else{ print "\t\n"; } $line++; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "Date added"; echo ""; echo "CVS checkout time"; print "
\n"; echo "
"; echo "Configure time cpu"; print "
\n"; echo "
"; echo "Configure time wall"; print "
\n"; echo "
"; echo "Build time cpu"; print "
\n"; echo "
"; echo "Build time wall"; print "
\n"; echo "
"; echo "Dejagnu time cpu"; print "
\n"; echo "
"; echo "Dejagnu time wall"; print "
\n"; echo "
"; echo "# of expected test passes"; print "
\n"; echo "
"; echo "# of unexpected test failures"; print "
\n"; echo "
"; echo "# of expected test failures"; print "
\n"; echo "
"; echo "# of warnings"; echo ""; echo "
"; $date = preg_replace("/\s\d\d:\d\d:\d\d/","",$row['added']); echo "$date"; echo ""; echo $row['getcvstime_wall']; echo "{$row['configuretime_cpu']}{$row['configuretime_cpu']}{$row['configuretime_cpu']}{$row['configuretime_cpu']}"; echo $row['configuretime_wall']; echo "{$row['buildtime_cpu']}{$row['buildtime_cpu']}{$row['buildtime_cpu']}{$row['buildtime_cpu']}"; echo $row['buildtime_wall']; echo "{$row['dejagnutime_cpu']}{$row['dejagnutime_cpu']}{$row['dejagnutime_cpu']}{$row['dejagnutime_cpu']}"; echo $row['dejagnutime_wall']; echo "{$row['teststats_exppass']}{$row['teststats_exppass']}{$row['teststats_unexpfail']}{$row['teststats_unexpfail']}{$row['teststats_unexpfail']}{$row['teststats_expfail']}{$row['teststats_expfail']}{$row['teststats_expfail']}$num_warnings$num_warnings"; print "View details\n"; echo "
"; $date = preg_replace("/\s\d\d:\d\d:\d\d/","",$row['added']); echo $date; echo ""; echo $row['getcvstime_wall']; echo ""; echo $row['configuretime_cpu']; echo ""; echo $row['configuretime_wall']; echo ""; echo $row['buildtime_cpu']; echo ""; echo $row['buildtime_wall']; echo ""; echo $row['dejagnutime_cpu']; echo ""; echo $row['dejagnutime_wall']; echo ""; echo $row['teststats_exppass']; echo ""; echo $row['teststats_unexpfail']; echo ""; echo $row['teststats_expfail']; echo ""; if(isset($num_warnings)){ echo $num_warnings; } else{ echo "-"; } echo ""; print "View details\n"; echo "
"; print " | "; print "\n"; print "\n"; print "\n"; print "
Produces a graph of the selected columns over
time.
\n"; print "
?
\n"; print "
\n"; mysql_close($mysql_link); ?>