[llvm-commits] CVS: nightlytest-serverside/SQLUtil.php
Jim Laskey
jlaskey at apple.com
Wed Sep 20 09:44:20 PDT 2006
Changes in directory nightlytest-serverside:
SQLUtil.php updated: 1.9 -> 1.10
---
Log message:
Clean up test records #10
---
Diffs of the changes: (+5 -5)
SQLUtil.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: nightlytest-serverside/SQLUtil.php
diff -u nightlytest-serverside/SQLUtil.php:1.9 nightlytest-serverside/SQLUtil.php:1.10
--- nightlytest-serverside/SQLUtil.php:1.9 Wed Sep 20 11:31:32 2006
+++ nightlytest-serverside/SQLUtil.php Wed Sep 20 11:44:06 2006
@@ -15,13 +15,13 @@
$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 \"%/llvm/test/%\"";
+$query = "SELECT * FROM tests WHERE measure=\"dejagnu\" AND program LIKE \"%%\"";
if ($get_query = mysql_query($query)) {
$count = 1;
while ($row = mysql_fetch_assoc($get_query)) {
$old = $row['program'];
$subpatterns = explode("/llvm/test/", $old, 2);
- $new = $subpatterns[1];
+ $after = $subpatterns[1];
print "$count: $new\n";
if (isset($new)) {
$new = "test/".$after;
@@ -29,11 +29,11 @@
$night = $row['night'];
$query = "UPDATE tests SET program=\"$new\" WHERE night=$night AND program=\"$old\" AND result=\"$result\" AND measure=\"dejagnu\"";
print "$query\n";
- $set_query = mysql_query($query);
- mysql_free_result($set_query);
+# $set_query = mysql_query($query);
+# mysql_free_result($set_query);
}
$count = $count + 1;
- if (($count % 1000) == 0) break;
+ if (($count % 100) == 0) break;
}
mysql_free_result($get_query);
More information about the llvm-commits
mailing list