projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 2/3/10 13:04
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:38
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:27
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 9:26
Michael Larabel  
pts: Drop MD5 hashes in... 
Tue 2/2/10 23:43
Michael Larabel  
phoromatic: Add... 
Tue 2/2/10 23:35
Michael Larabel  
pts-core: Phoromatic... 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index ced65c4
..47a107c 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -14,+14,@@ Phoronix Test Suite (git)
 - 
Clean up text output a bitAdd "arguments description" string to text output when showing final results for each test.
 - 
Improved CPU detection ensures the frequency is shownProperly handles the frequency for those overclocking or with power-savings technologies.
 - 
Added video memory detection supportCurrently only NVIDIA binary driver supportedDefaults to 128MBVideo memory capacity (in MBexported to VIDEO_MEMORY for profiles.
+- 
Compatibility checks when merging results
 
Other small fixes

 Phoronix Test Suite 0.1.0
diff 
--git a/pts-core/functions/pts-functions-merge.php b/pts-core/functions/pts-functions-merge.php
index 2def011
..a1867d2 100644
--- a/pts-core/functions/pts-functions-merge.php
+++ b/pts-core/functions/pts-functions-merge.php
@@ -38,+38,10 @@ function pts_merge_benchmarks($OLD_RESULTS$NEW_RESULTS)
     
$new_suite_type $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Type");
     
$new_suite_maintainer $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Maintainer");

+    
$new_results_version $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Version");
+    
$new_results_testname $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestName");
+    
$new_results_arguments $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestArguments");
+
     
$new_results_identifiers = array();
     
$new_results_values = array();

@@ -
84,+88,20 @@ function pts_merge_benchmarks($OLD_RESULTS$NEW_RESULTS)
     }
     unset(
$OLD_RESULTS$original_xml_reader$original_results_raw);

+
+    if(
$original_suite_name != $new_suite_name)
+    {
+        echo 
"Merge Failed! The test(s) don't match: $original_suite_name - $new_suite_name\n";
+        exit(
0);
+    }
+    if(
$original_suite_version != $new_suite_version)
+    {
+        echo 
"Merge Failed! The test versions don't match: $original_suite_version - $new_suite_version\n";
+        exit(
0);
+    }
+
+    
// Write the new merge
+
     
$RESULTS = new tandem_XmlWriter();

     
$RESULTS->setXslBinding("pts-results-viewer/pts-results-viewer.xsl");
@@ -
95,+113,@@ function pts_merge_benchmarks($OLD_RESULTS$NEW_RESULTS)
     
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Type"0$new_suite_type);
     
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Maintainer"0$new_suite_maintainer);

-    
// TODO: ADD MORE COMPATIBILITY CHECKS!!!!
-
+    
// Same hardware and software?
+
     if(
count($original_system_hardware) == && count($new_system_hardware) == && $original_system_hardware[0] == $new_system_hardware[0] && $original_system_software[0] == $new_system_software[0] && $original_pts_version[0] == $new_pts_version[0])
     {
         
$USE_ID pts_request_new_id();
@@ -
110,+128,@@ function pts_merge_benchmarks($OLD_RESULTS$NEW_RESULTS)
     }
     else
     {
+        if(
$original_pts_version[0] != $new_pts_version[0]) // TODO: add checks to scan entire pts_version arrays
+            echo "PTS Versions Do Not Match! For accurate results, you should only test against the same version.";
+
         for(
$i 0$i count($original_system_hardware); $i++)
         {
             
$USE_ID pts_request_new_id();
@@ -
152,12 +173,14 @@ function pts_merge_benchmarks($OLD_RESULTS$NEW_RESULTS)
             
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Value"$USE_ID$original_results_values[$b][$o], 5"o-$b-$o");
         }

-        for(
$o 0$o count($new_results_identifiers[$b]); $o++)
-        {
-            
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Identifier"$USE_ID$new_results_identifiers[$b][$o], 5"n-$b-$o");
-            
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Value"$USE_ID$new_results_values[$b][$o], 5"n-$b-$o");
-        }
-    }
+
+        if(
$original_results_testname[$b] == $new_results_testname[$b] && $original_results_arguments[$b] == $new_results_arguments[$b] && $original_results_version[$b] == $new_results_version[$b])
+            for(
$o 0$o count($new_results_identifiers[$b]); $o++)
+            {
+                
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Identifier"$USE_ID$new_results_identifiers[$b][$o], 5"n-$b-$o");
+                
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Value"$USE_ID$new_results_values[$b][$o], 5"n-$b-$o");
+            }
+    }

     return 
$RESULTS->getXML();
 }
diff --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 31b014d
..3dd7b96 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -114,+114,@@ function parse_lsb_output($desc)
     {
         
$info file_get_contents("/etc/lsb-release");

-        if((
$pos strpos($info$desc)) == FALSE)
+        if((
$pos strpos($info$desc)) === FALSE)
             
$info "Unknown";
         else
         {
@@ -
257,+257,@@ function opengl_version()
     {
         
$info substr($info$pos 23);
         
$info trim(substr($info0strpos($info"\n")));
+        
$info str_replace(array(" Release"), ""$info);
     }

     if(
str_replace(array("NVIDIA""ATI""AMD""Radeon""Intel"), ""$info) == $info)
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media