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

Jim Laskey jlaskey at apple.com
Wed Sep 20 09:45:51 PDT 2006



Changes in directory nightlytest-serverside:

SQLUtil.php updated: 1.10 -> 1.11
---
Log message:

Clean up test records #11

---
Diffs of the changes:  (+3 -3)

 SQLUtil.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: nightlytest-serverside/SQLUtil.php
diff -u nightlytest-serverside/SQLUtil.php:1.10 nightlytest-serverside/SQLUtil.php:1.11
--- nightlytest-serverside/SQLUtil.php:1.10	Wed Sep 20 11:44:06 2006
+++ nightlytest-serverside/SQLUtil.php	Wed Sep 20 11:45:37 2006
@@ -15,20 +15,20 @@
 $mysql_link = mysql_connect("127.0.0.1", "llvm", "ll2002vm") or die("Error: could not connect to database!\n");
 mysql_select_db("nightlytestresults");
 
-$query = "SELECT * FROM tests WHERE measure=\"dejagnu\" AND program LIKE \"%%\"";
+$query = "SELECT * FROM tests WHERE measure=\"dejagnu\" AND program LIKE \"%/llvm/test/%\"";
 if ($get_query = mysql_query($query)) {
   $count = 1;
   while ($row = mysql_fetch_assoc($get_query)) {
     $old = $row['program'];
     $subpatterns = explode("/llvm/test/", $old, 2);
     $after = $subpatterns[1];
-    print "$count: $new\n";
+    print "$count: $new<BR>\n";
     if (isset($new)) {
       $new = "test/".$after;
       $result = $row['result'];
       $night =  $row['night'];
       $query = "UPDATE tests SET program=\"$new\" WHERE night=$night AND program=\"$old\" AND result=\"$result\" AND measure=\"dejagnu\"";
-      print "$query\n";
+      print "$query<BR>\n";
 #      $set_query = mysql_query($query);
 #      mysql_free_result($set_query);
     }






More information about the llvm-commits mailing list