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

Jim Laskey jlaskey at apple.com
Wed Aug 30 13:57:05 PDT 2006



Changes in directory nightlytest-serverside:

ProgramResults.php updated: 1.13 -> 1.14
---
Log message:

Debugging newly pass fail report attempt #5.


---
Diffs of the changes:  (+42 -0)

 ProgramResults.php |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+)


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.13 nightlytest-serverside/ProgramResults.php:1.14
--- nightlytest-serverside/ProgramResults.php:1.13	Wed Aug 30 14:41:33 2006
+++ nightlytest-serverside/ProgramResults.php	Wed Aug 30 15:56:51 2006
@@ -556,6 +556,27 @@
       }
     }
     mysql_free_result($program_query);
+    
+    $test_hash=array();
+    $query = "SELECT * FROM program WHERE night=$prev_id";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)){
+      if(strcmp("{$row['result']}", "PASS")!==0){
+        $test_hash["{$row['measure']} - {$row['program']}"]=$row['result'];
+      }    
+    }
+    mysql_free_result($program_query);
+
+    $query = "SELECT * FROM program WHERE night=$cur_id";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)){
+      $test_key = "{$row['measure']} - {$row['program']}";
+      if(isset($test_hash[$test_key]) && 
+         strcmp($test_hash[$test_key], $row['result'])!==0){
+        $result .= $test_key . "<br>\n";
+      }
+    }
+    mysql_free_result($program_query);
   }
   return $result;
 }
@@ -601,6 +622,27 @@
       }
     }
     mysql_free_result($program_query);
+
+    $test_hash=array();
+    $query = "SELECT * FROM program WHERE night=$cur_id";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)){
+      if(strcmp("{$row['result']}", "PASS")!==0){
+        $test_hash["{$row['measure']} - {$row['program']}"]=$row['result'];
+      }    
+    }
+    mysql_free_result($program_query);
+
+    $query = "SELECT * FROM program WHERE night=$prev_id";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)){
+      $test_key = "{$row['measure']} - {$row['program']}";
+      if(isset($test_hash[$test_key]) && 
+         strcmp($test_hash[$test_key], $row['result'])!==0){
+        $result .= $test_key . "<br>\n";
+      }
+    }
+    mysql_free_result($program_query);
   }
   return $result;
 }






More information about the llvm-commits mailing list