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

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Mon 8/30/10 20:43

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 8/30/10 20:43
Michael Larabel  
 
Mon 8/30/10 20:37
Michael Larabel  
pts-core: Last minute... 
Sat 8/28/10 12:53
Michael Larabel  
pts-core: Detect if a... 
Sat 8/28/10 10:34
Michael Larabel  
pts-core: Fix test result... 
Fri 8/27/10 8:51
Michael Larabel  
pts-core: When doing a... 
Wed 8/25/10 18:46
Michael Larabel  
 
 
> --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index 2fc20cb
..83ef83f 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -132,+132,@@ function pts_install_package_on_distribution($benchmark)
     
$benchmark strtolower($benchmark);
     
$install_objects = array();
     
pts_recurse_install_benchmark($benchmark$install_objects);
-    
pts_install_package_on_distribution_process($install_objects);
+    
pts_install_packages_on_distribution_process($install_objects);
 }
-function 
pts_install_package_on_distribution_process($install_objects)
+function 
pts_install_packages_on_distribution_process($install_objects)
 {
     if(!empty(
$install_objects))
     {
@@ -
161,+161,23 @@ function pts_install_external_dependencies_list($Benchmark, &$INSTALL_OBJ)

     
$vendor strtolower(os_vendor());

+    if(!
pts_package_generic_to_distro_name($INSTALL_OBJ$dependencies))
+    {
+        
$package_string "";
+        foreach(
$dependencies as $dependency)
+        {
+            
$package_string .= pts_external_dependency_generic($dependency);
+        }
+
+        if(!empty(
$package_string))
+            echo 
"\nSome additional dependencies are required to run or more of these benchmarks, and they could not be installed automatically for your distribution by the Phoronix Test Suite. Below are the software packages that must be installed for this benchmark to run properly.\n\n" $package_string;
+    }
+}
+function 
pts_package_generic_to_distro_name(&$package_install_array$generic_names)
+{
+    
$vendor strtolower(os_vendor());
+    
$generated false;
+
     if(
is_file(MISC_LOCATION "distro-xml/" $vendor "-packages.xml"))
     {
         
$xml_parser = new tandem_XmlReader(file_get_contents(MISC_LOCATION "distro-xml/" $vendor "-packages.xml"));
@@ -
169,+186,@@ function pts_install_external_dependencies_list($Benchmark, &$INSTALL_OBJ)
         
$file_check $xml_parser->getXMLArrayValues("PhoronixTestSuite/ExternalDependencies/Package/FileCheck");

         for(
$i 0$i count($generic_package); $i++)
-            if(!empty(
$generic_package[$i]) && in_array($generic_package[$i], $dependencies))
+            if(!empty(
$generic_package[$i]) && in_array($generic_package[$i], $generic_names))
             {
-                if(!
in_array($distro_package[$i], $INSTALL_OBJ))
+                if(!
in_array($distro_package[$i], $package_install_array))
                 {
                     if(!empty(
$file_check[$i]))
                     {
@@ -
182,21 +199,12 @@ function pts_install_external_dependencies_list($Benchmark, &$INSTALL_OBJ)
                         
$add_dependency true;

                     if(
$add_dependency)
-                        
array_push($INSTALL_OBJ$distro_package[$i]);
+                        
array_push($package_install_array$distro_package[$i]);
                 }
             }
+        
$generated true;
     }
-    else
-    {
-        
$package_string "";
-        foreach(
$dependencies as $dependency)
-        {
-            
$package_string .= pts_external_dependency_generic($dependency);
-        }

-        if(!empty(
$package_string))
-            echo 
"\nSome additional dependencies are required to run or more of these benchmarks, and they could not be installed automatically for your distribution by the Phoronix Test Suite. Below are the software packages that must be installed for this benchmark to run properly.\n\n" $package_string;
-    }
+    return 
$generated;
 }
-
 
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media