[llvm-commits] CVS: nightlytest-serverside/ProgramResults.php

Jim Laskey jlaskey at apple.com
Thu Aug 31 10:33:06 PDT 2006



Changes in directory nightlytest-serverside:

ProgramResults.php updated: 1.26 -> 1.27
---
Log message:

Add llvm-tests to fail report.


---
Diffs of the changes:  (+16 -7)

 ProgramResults.php |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.26 nightlytest-serverside/ProgramResults.php:1.27
--- nightlytest-serverside/ProgramResults.php:1.26	Thu Aug 31 11:35:07 2006
+++ nightlytest-serverside/ProgramResults.php	Thu Aug 31 12:32:51 2006
@@ -393,13 +393,22 @@
  * This is somewhat of a hack because from night 684 forward we now store the test 
  * in their own table as oppoesd in the night table.
  */
-function getFailures($night_id, $mysql_link){
+function getFailures($night_id) {
   $result="";
-  if($night_id>=$new_schema_id){
-    $query = "SELECT * FROM tests WHERE night=$night_id AND result=\"FAIL\" AND measure!=\"dejagnu\"";
+  if ($night_id >= $new_schema_id) {
+    $query = "SELECT * FROM tests WHERE night=$night_id AND result=\"FAIL\"";
     $program_query = mysql_query($query) or die (mysql_error());
-    while($row = mysql_fetch_array($program_query)){
-      $result.="{$row['measure']} - {$row['program']}<br>\n";
+    while($row = mysql_fetch_array($program_query)) {
+      $result .= $row['program'] . "<br>\n";
+    }
+    mysql_free_result($program_query);
+
+    $query = "SELECT * FROM program WHERE night=$night_id ";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)) {
+      if (!isTestPass($row['result'])) {
+        $result .= $row['program'] . "<br>\n";
+      }
     }
     mysql_free_result($program_query);
   }
@@ -423,10 +432,10 @@
     mysql_free_result($program_query);
   }
   else{
-    $query = "SELECT * FROM tests WHERE night=$night_id AND result=\"FAIL\" AND measure=\"dejagnu\"";
+    $query = "SELECT * FROM tests WHERE night=$night_id AND result=\"FAIL\"";
     $program_query = mysql_query($query) or die (mysql_error());
     while($row = mysql_fetch_array($program_query)){
-      $result.="{$row['measure']} - {$row['program']}<br>\n";
+      $result .= $row['program'] . "<br>\n";
     }
     mysql_free_result($program_query);
   }






More information about the llvm-commits mailing list