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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Fri 5/17/13 22:52

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
Sat 5/11/13 13:55
Michael Larabel  
pts-core: Fix for... 
 
> --git a/pts-core/library/pts-includes-install.php b/pts-core/library/pts-includes-install.php
index 6dc514d
..588e994 100644
--- a/pts-core/library/pts-includes-install.php
+++ b/pts-core/library/pts-includes-install.php
@@ -23,+23,@@

 require_once(
PTS_LIBRARY_PATH "pts-includes-install_dependencies.php");

-function 
pts_start_install($to_install)
+function 
pts_start_install($to_install, &$display_mode)
 {
     
$to_install pts_to_array($to_install);

@@ -
74,+74,@@ function pts_start_install($to_install)

     foreach(
$tests as $test)
     {
-        
pts_install_test($test);
+        
pts_install_test($test$display_mode);
     }

     
pts_module_process("__post_install_process"$tests);
@@ -
376,+376,@@ function pts_setup_install_test_directory($identifier$remove_old_files false
         pts_symlink
($xauth_fileTEST_ENV_DIR $identifier "/.Xauthority");
     }
 }
-function 
pts_install_test($identifier)
+function 
pts_install_test($identifier, &$display_mode)
 {
     if(!
pts_is_test($identifier))
     {
diff --git a/pts-core/library/pts-includes-install_dependencies.php b/pts-core/library/pts-includes-install_dependencies.php
index 91731d3
..8faf5c5 100644
--- a/pts-core/library/pts-includes-install_dependencies.php
+++ b/pts-core/library/pts-includes-install_dependencies.php
@@ -21,+21,@@
     
along with this program. If notsee <http://www.gnu.org/licenses/>.
 
*/

-function 
pts_install_package_on_distribution($identifiers)
+function 
pts_install_package_on_distribution($identifiers, &$display_mode)
 {
     
// PTS External Dependencies install on distribution
     
if(!pts_is_assignment("SILENCE_MESSAGES"))
@@ -
47,+47,@@ function pts_install_package_on_distribution($identifiers)
         return 
count($install_objects) == 0;
     }

-    
pts_install_packages_on_distribution_process($install_objects);
+    
pts_install_packages_on_distribution_process($install_objects$display_mode);

     return 
true;
 }
@@ -
223,+223,@@ function pts_external_dependencies_missing()

     return 
$missing_dependencies;
 }
-function 
pts_install_packages_on_distribution_process($install_objects)
+function 
pts_install_packages_on_distribution_process($install_objects, &$display_mode)
 {
     
// Do the actual installing process of packages using the distribution's package management system
     
if(!empty($install_objects))
@@ -
237,+237,@@ function pts_install_packages_on_distribution_process($install_objects)

         if(
is_file(SCRIPT_DISTRO_DIR "install-" $distribution "-packages.sh"))
         {
+            
// TODO: hook into $display_mode here if it's desired
             
echo "\nThe following dependencies will be installed: \n";

             foreach(
explode(" "$install_objects) as $obj)
diff --git a/pts-core/options/install_test.php b/pts-core/options/install_test.php
index 309be06
..d93d38f 100644
--- a/pts-core/options/install_test.php
+++ b/pts-core/options/install_test.php
@@ -69,15 +69,17 @@ class install_test implements pts_option_interface

             
echo "\n";

+            
$display_mode pts_get_display_mode_object();
+
             
// Any external dependencies?
-            if(!pts_install_package_on_distribution($items_to_install))
+            if(!
pts_install_package_on_distribution($items_to_install$display_mode))
             {
                 echo 
"\nInstallation of needed test dependencies failed.\n\n";
                 return 
false;
             }

             
// Install tests
-            pts_start_install($items_to_install);
+            
pts_start_install($items_to_install$display_mode);
         }
     }
 }
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media