Commit:    443d78320c0a97543e4587f7606ec10222a43847
Author:    v-maf...@microsoft.com <v-maf...@microsoft.com>         Mon, 24 Mar 
2014 15:08:04 -0700
Parents:   aa6602710c3b19257f023d142e06650b2f84c847
Branches:  master

Link:       
http://git.php.net/?p=web/qa.git;a=commitdiff;h=443d78320c0a97543e4587f7606ec10222a43847

Log:
Publish PFTT reports

Changed paths:
  M  build.php
  M  list_builds.php
  M  pftt.php


Diff:
diff --git a/build.php b/build.php
index ed9a571..89381b3 100755
--- a/build.php
+++ b/build.php
@@ -45,10 +45,13 @@ common_header(NULL, $TITLE);
        <?php
 foreach ( scandir(BASE_REPORT_DIR."/$branch/$revision") as $report ) {
        if (substr($report, 0, 4)=="PHPT" && 
is_file(BASE_REPORT_DIR."/$branch/$revision/$report")) {
+           $report_name = $report;
+           if (substr($report_name, strlen($report_name)-5, 5)==".html")
+               $report_name = substr($report_name, 0, strlen($report_name)-5);
        
        ?>
        <tr>
-               <td>with <a href="/reports/db/<?php echo $branch; ?>/<?php echo 
$revision; ?>/<?php echo $report; ?>" target="_blank"><?php echo $report; 
?></a></td>
+               <td>with <a href="/reports/db/<?php echo $branch; ?>/<?php echo 
$revision; ?>/<?php echo $report; ?>" target="_blank"><?php echo $report_name; 
?></a></td>
        </tr>
        <?php
        
@@ -66,10 +69,13 @@ foreach ( scandir(BASE_REPORT_DIR."/$branch/$revision") as 
$report ) {
 
 foreach ( scandir(BASE_REPORT_DIR."/$branch/$revision") as $report ) {
        if (substr($report, 0, 7)=="PhpUnit" && 
is_file(BASE_REPORT_DIR."/$branch/$revision/$report")) {
+           $report_name = $report;
+           if (substr($report_name, strlen($report_name)-5, 5)==".html")
+               $report_name = substr($report_name, 0, strlen($report_name)-5);
        
        ?>
        <tr>
-               <td>with <a href="/reports/db/<?php echo $branch; ?>/<?php echo 
$revision; ?>/<?php echo $report; ?>" target="_blank"><?php echo $report; 
?></a></td>
+               <td>with <a href="/reports/db/<?php echo $branch; ?>/<?php echo 
$revision; ?>/<?php echo $report; ?>" target="_blank"><?php echo $report_name; 
?></a></td>
        </tr>
        <?php
        
diff --git a/list_builds.php b/list_builds.php
index 4b321f4..95eec34 100755
--- a/list_builds.php
+++ b/list_builds.php
@@ -16,8 +16,6 @@ $SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
 common_header(NULL, $TITLE);
 
 
-// TODO include info about PFTT, link to download build of PFTT
-
 ?>
 <h1><a href="pftt.php"><?php echo $branch; ?></a></h1>
 
@@ -26,15 +24,9 @@ common_header(NULL, $TITLE);
 
 $r = scandir(BASE_REPORT_DIR."/$branch");
 
-//var_dump($r);
-
-
-
-$r = sort($r);
-var_dump($r);
-//*/
 
-/*
+if ($r!==FALSE) {
+sort($r);
 
 $latest_revision = '';
 $mtime = 0;
@@ -43,13 +35,14 @@ foreach ( $r as $revision ) {
        if ($revision=="." or $revision=="..")
                continue;
        if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) {
-               $mtime = stat(BASE_REPORT_DIR."/$branch/$revision")[9];
+               $s = stat(BASE_REPORT_DIR."/$branch/$revision");
+               $mtime = $s['mtime'];
                if ($mtime > $latest_revision_mtime) {
                        $latest_revision = $revision;
                        $latest_revision_mtime = $mtime;
                }
        }
-}
+} // end foreach
 
 
 ?>
@@ -58,10 +51,10 @@ foreach ( $r as $revision ) {
                <td>Latest:</td>
                <td><a href="build.php?branch=<?php echo $branch; 
?>&revision=<?php echo $latest_revision; ?>"><?php echo $latest_revision; 
?></a></td>
        </tr>
-<?php  <tr>
+<?php  /*<tr>
                <td>New Failures:</td>
                <td>New Crashes:</td>
-       </tr>  ?>
+       </tr>*/  ?>
 </table>
 <br/>
 <table>
@@ -80,13 +73,15 @@ foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision 
) {
        <?php
        
        } // end if
-}
+} // end foreach
        
        
        ?>
 </table>
 <?php
-*/
+
+} // end if
+
 
 common_footer();
 
diff --git a/pftt.php b/pftt.php
index 586e5e6..7617a9f 100755
--- a/pftt.php
+++ b/pftt.php
@@ -10,6 +10,9 @@ common_header(NULL, $TITLE);
 
 define('BASE_REPORT_DIR', dirname($_SERVER['SCRIPT_FILENAME'])."/reports/db/");
 
+
+// TODO include info about PFTT, link to download build of PFTT
+
 ?>
 <h1>PFTT</h1>


--
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to