Exemplo n.º 1
0
function resultClangDisplay($version, $display = true)
{
    global $totalFailed, $clangVersions;
    $totalDebian = $clangVersions[$version];
    if (!$keyGET) {
        $errors = parse_error($version);
        ?>


<?php 
        echo $totalDebian;
        ?>
 packages have been rebuild. Among them, <?php 
        echo $totalFailed;
        ?>
 (<?php 
        echo round($totalFailed * 100 / $totalDebian, 1);
        ?>
 %) failed.
<br />
Most of the errors are explained with test cases.
<?
if ($display) {
   displayVersion($version,"");
}
?>

<table class="data">
<tr><th>Type of error</th><th>Occurrence</th><th>clang % / Debian %</th><th></th></tr>
<?
foreach($errors as  $key => $err) {
                if ($err['nb']>0) {
            if ($err['key']!="NO_CAT") {

?>
    <tr><td><?php 
        echo $err["dsc"];
        ?>
 <?if (isset($err['new'])) { echo "<small> - new in " . $err['new'] . "</small>"; }?> </td>
<td><?php 
        echo $err["nb"];
        ?>
</td>
<td><?php 
        echo round(100 * $err["nb"] / $totalFailed, 2);
        ?>
% / <?php 
        echo round(100 * $err["nb"] / $totalDebian, 2);
        ?>
%</td>
<td><a href="status.php?version=<?php 
        echo $version;
        ?>
&key=<?php 
        echo $err['key'];
        ?>
">List of errors</a></td>
<? /* ?> 
 <td><?if (!is_file("errors/{$err['key']}.inc")) echo "no";?></td>
<? */ ?>
</tr>
<?
                    } else {
// Key the no cat stuff
                $key_NO_CAT=$key;
                $err_NO_CAT=$err;
                }
            }

}
?>
    <tr><td>Not categorized</td><td><?php 
        echo $err_NO_CAT['nb'];
        ?>
</td>
<td><?php 
        echo round(100 * $err_NO_CAT['nb'] / $totalFailed, 2);
        ?>
% / <?php 
        echo round(100 * $err_NO_CAT['nb'] / $totalDebian, 2);
        ?>
%</td>
<td><a href="status.php?version=<?php 
        echo $version;
        ?>
&key=NO_CAT">List of errors</a></td>
</tr>
</table>
<?php 
    }
}
Exemplo n.º 2
0
    <i>"<?php 
echo $keyDSC;
?>
"</i> build failure(s)<br />clang <?php 
echo $versionGET;
?>
</div>
<div align="right">    <a href="status.php">Return to the list</a></div>
<?
    if (is_file("errors/".$keyGET.".inc")) {
        include("errors/".$keyGET.".inc");
    }
?><br />

<?
displayVersion($versionGET, $keyGET);
?>

<table class="data">
<tr><th>Package</th><th>Version</th><th>Supposed error message</th><th>Full log</th>
<th>Bug report</th>
</tr>
<?
if ($versionGET=="2.9") {
	$suffix="lsid64c";
}
if ($versionGET=="3.1" || $versionGET=="3.3") {
   	$suffix="unstable_clang";
   	$ext="log";
}