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

Jim Laskey jlaskey at apple.com
Wed Aug 30 15:08:56 PDT 2006



Changes in directory nightlytest-serverside:

ProgramResults.php updated: 1.22 -> 1.23
---
Log message:

New/Dropped/Pass/Fail working for llvm-test.


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

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


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.22 nightlytest-serverside/ProgramResults.php:1.23
--- nightlytest-serverside/ProgramResults.php:1.22	Wed Aug 30 16:54:55 2006
+++ nightlytest-serverside/ProgramResults.php	Wed Aug 30 17:08:42 2006
@@ -469,6 +469,24 @@
       }
     }
     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)){
+      $test_hash[$row['program']]=1;
+    }
+    mysql_free_result($program_query);
+
+    $query = "SELECT * FROM program WHERE night=$cur_id ORDER BY program ASC";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)){
+      $test_key = $row['program'];
+      if(!isset($test_hash[$test_key])){
+        $result .= $test_key . "<br>\n";
+      }
+    }
+    mysql_free_result($program_query);
   }
   return $result;
 }
@@ -511,6 +529,24 @@
       }
     }
     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)){
+      $test_hash[$row['program']]=1;
+    }
+    mysql_free_result($program_query);
+
+    $query = "SELECT * FROM program WHERE night=$prev_id ORDER BY program ASC";
+    $program_query = mysql_query($query) or die (mysql_error());
+    while($row = mysql_fetch_array($program_query)){
+      $test_key = $row['program'];
+      if(!isset($test_hash[$test_key])){
+        $result .= $test_key . "<br>\n";
+      }
+    }
+    mysql_free_result($program_query);
   }
   return $result;
 }






More information about the llvm-commits mailing list