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

Jim Laskey jlaskey at apple.com
Thu Sep 14 04:08:35 PDT 2006



Changes in directory nightlytest-serverside:

NightlyTestAccept.php updated: 1.4 -> 1.5
---
Log message:

testing #4

---
Diffs of the changes:  (+50 -2)

 NightlyTestAccept.php |   52 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 50 insertions(+), 2 deletions(-)


Index: nightlytest-serverside/NightlyTestAccept.php
diff -u nightlytest-serverside/NightlyTestAccept.php:1.4 nightlytest-serverside/NightlyTestAccept.php:1.5
--- nightlytest-serverside/NightlyTestAccept.php:1.4	Thu Sep 14 05:57:38 2006
+++ nightlytest-serverside/NightlyTestAccept.php	Thu Sep 14 06:08:21 2006
@@ -16,6 +16,7 @@
 print "content-type: text/text\r\n\r\n";
 
 $print_env = 0;
+$print_debug = 1;
 
 if ($print_env) {
   foreach ($_ENV as $key => $value) {
@@ -547,8 +548,6 @@
 $warnings = $_POST['warnings'];            
 $lines_of_code = $_POST['lines_of_code'];
 
-print "HERE I AM\n";
-
 /*******************************************************************************
  *
  * Extracting the machine information
@@ -561,6 +560,15 @@
 $date     = MatchOne("/date\:\s*(.+)/",     $MACHINE_DATA[4], "");
 $time     = MatchOne("/time\:\s*(.+)/",     $MACHINE_DATA[5], "");
 
+if ($print_debug) {
+  print "uname: $uname\n";
+  print "hardware: $hardware\n";
+  print "os: $os\n";
+  print "name: $name\n";
+  print "date: $date\n";
+  print "time: $time\n";
+}
+
 /*******************************************************************************
  *
  * Extracting the dejagnu test numbers
@@ -571,6 +579,12 @@
 $dejagnu_unexp_failures = MatchOne("/unexpected failures\s*([0-9]+)/",     $dejagnutests_log, 0);
 $dejagnu_exp_failures   = MatchOne("/\# of expected failures\s*([0-9]+)/", $dejagnutests_log, 0);
 
+if ($print_debug) {
+  print "dejagnu_exp_passes: $dejagnu_exp_passes\n";
+  print "dejagnu_unexp_failures: $dejagnu_unexp_failures\n";
+  print "dejagnu_exp_failures: $dejagnu_exp_failures\n";
+}
+
 /*******************************************************************************
  *
  * Processing Program Test Table Logs
@@ -581,6 +595,12 @@
 $multisource_processed = ProcessProgramLogs($MULTISOURCE_TESTS);
 $external_processed = ProcessProgramLogs($EXTERNAL_TESTS);
 
+if ($print_debug) {
+  print "singlesource_processed#: ${count(singlesource_processed)}\n";
+  print "multisource_processed#: ${count(multisource_processed)}\n";
+  print "external_processed#: ${count(external_processed)}\n";
+}
+
 /*******************************************************************************
  *
  * creating the response
@@ -591,6 +611,10 @@
 }
 $machine_id = GetMachineId($uname, $hardware, $os, $name, $nickname, $gcc_version);
 
+if ($print_debug) {
+  print "machine_id: $machine_id\n";
+}
+
 /*******************************************************************************
  *
  * Submitting information to database
@@ -610,6 +634,10 @@
             $cvsaddedfiles, $cvsremovedfiles, $cvsmodifiedfiles,
             $cvsusercommitlist, $cvsuserupdatelist);
 
+if ($print_debug) {
+  print "db_date: $db_date\n";
+  print "night_id: $night_id\n";
+}
 
 foreach ($singlesource_processed as $key => $value) {
    AddProgram($key, $value, "singlesource", $night_id); 
@@ -623,16 +651,28 @@
    AddProgram($key, $value, "external", $night_id); 
 }
 
+if ($print_debug) {
+  print "Programs Added\n";
+}
+
 foreach ($O_FILE_SIZE as $info) {
   list($ignore, $size, $file, $type) = Match("/(.+)\s+(.+)\s+(.+)/", $info);
   AddFile($file, $size, $night_id, $type);
 }
 
+if ($print_debug) {
+  print "o file sizes#: ${count($O_FILE_SIZE)}\n";
+}
+
 foreach ($A_FILE_SIZE as $info) {
   list($ignore, $size, $file, $type) = Match("/(.+)\s+(.+)\s+(.+)/", $info);
   AddFile($file, $size, $night_id, $type);
 }
 
+if ($print_debug) {
+  print "a file sizes#: ${count($A_FILE_SIZE)}\n";
+}
+
 /*******************************************************************************
  *
  * Adding test results pass/fail/xfail status to database
@@ -652,6 +692,10 @@
   }
 }
 
+if ($print_debug) {
+  print "Dejagnu Tests Added\n";
+}
+
 foreach ($DEJAGNUTESTS_RESULTS as $info) {
   $subpatterns = array();
   if (preg_match("/^(XPASS|PASS|XFAIL|FAIL):\s(.+):?/", $info, $subpatterns)) {
@@ -663,6 +707,10 @@
   }
 }
 
+if ($print_debug) {
+  print "Dejagnu Test Results Added\n";
+}
+
 /*******************************************************************************
  *
  * Adding lines of code to the database






More information about the llvm-commits mailing list