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/phoronix-test-suite b/phoronix-test-suite
index f347ba6
..4830f11 100755
--- a/phoronix-test-suite
+++ b/phoronix-test-suite
@@ -24,+24,@@ case "${task}in
 
"install")
     
php pts-core/pts-run-cmd.php INSTALL_BENCHMARK $2
     
;;
+
"install-dependencies")
+    
php pts-core/pts-run-cmd.php INSTALL_EXTERNAL_DEPENDENCIES $2
+    ;;
 
"run")
     
php pts-core/pts-run-benchmark.php $2
     
;;
@@ -
62,+65,@@ case "${task}in
     
echo "=================================\n"
 
#    echo "gui: Launch The Phoronix Test Suite GUI"
     
echo "install <suite OR benchmark>: Install or Update The Specified Benchmark(s)"
+    echo "install-dependencies <suite OR benchmark>: Install The External (Distribution) Dependencies For Specified Benchmark(s)"
     
echo "run <suite OR benchmark>: Run The Specified Benchmark/Suite"
     
echo "benchmark <suite OR benchmark OR saved file>: Same as manually running install and then run"
     
echo "merge-results <Saved File 1 OR Global ID> <Saved File 2 OR Global ID> <Save To>: Merge two saved result sets"
diff --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index b00f42b
..50c896d 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -114,+114,@@ function pts_install_external_dependencies($Benchmark, &$INSTALL_OBJ)

     if(
$dep_match_count == 0)
     {
-        echo 
"No packages found for your distribution";
+        echo 
"No packages found for your distribution (" os_vendor() . ").";
     }
 }

diff --git a/pts-core/pts-run-cmd.php b/pts-core/pts-run-cmd.php
index c0365d8
..d377de2 100644
--- a/pts-core/pts-run-cmd.php
+++ b/pts-core/pts-run-cmd.php
@@ -60,+60,26 @@ switch($COMMAND)
         
$install_objects "";
         
pts_recurse_install_benchmark($ARG_1$install_objects);
         break;
+    case 
"INSTALL_EXTERNAL_DEPENDENCIES":
+        if(empty(
$ARG_1))
+        {
+            echo 
"\nThe benchmark or suite name to install external dependencies for must be supplied.\n";
+            exit;
+        }
+
+        require(
"pts-core/functions/pts-functions-install.php");
+
+        
$ARG_1 strtolower($ARG_1);
+
+        
$install_objects = array();
+        
pts_recurse_install_benchmark($ARG_1$install_objects);
+
+        if(!empty(
$install_objects))
+        {
+            
$install_objects implode(" "$install_objects);
+            echo 
pts_exec("cd " MISC_LOCATION "distro-scripts/ && sh install-" os_vendor() . "-packages.sh $install_objects\n");
+        }
+        break;
     case 
"REMOTE_COMPARISON":
         echo 
"Now Use merge-results for remote comparison with integrated Global ID support.";
         echo 
"merge-results <Saved File 1 OR Global ID> <Saved File 2 OR Global ID> <Save To>: Merge two saved result sets";
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media