diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-12 16:05:55 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-13 10:34:51 -0500 |
commit | c23af20b5688541fb2c93105f817f802d2f33d71 (patch) | |
tree | fc8f814cd791032e19c62802358d8d1afce2af23 /pts-core/phoronix-test-suite.php | |
parent | 78bb4f6930b02aaaeb74d4d09c4a406da88ea98f (diff) | |
download | phoronix-test-suite-upstream-c23af20b5688541fb2c93105f817f802d2f33d71.tar.gz phoronix-test-suite-upstream-c23af20b5688541fb2c93105f817f802d2f33d71.tar.xz phoronix-test-suite-upstream-c23af20b5688541fb2c93105f817f802d2f33d71.zip |
pts-core: Modularize all Phoronix Test Suite run-time user options into
options/ classes and using phoronix-test-suite.php interface
pts-core: Remove pts-run-cmd.php now that all options are modularized
Diffstat (limited to 'pts-core/phoronix-test-suite.php')
-rw-r--r-- | pts-core/phoronix-test-suite.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pts-core/phoronix-test-suite.php b/pts-core/phoronix-test-suite.php index d7d910c..024c2f8 100644 --- a/pts-core/phoronix-test-suite.php +++ b/pts-core/phoronix-test-suite.php @@ -24,13 +24,22 @@ require("pts-core/functions/pts-functions.php"); -$COMMAND = $argv[1]; pts_set_assignment("COMMAND", getenv("PTS_COMMAND")); +$pass_args = array(); +for($i = 2; $i < $argc; $i++) +{ + if(isset($argv[$i])) + { + array_push($pass_args, $argv[$i]); + } +} + +$COMMAND = $argv[1]; if(is_file("pts-core/options/" . strtolower($COMMAND) . ".php")) { include_once("pts-core/options/" . strtolower($COMMAND) . ".php"); - eval(strtolower($COMMAND) . "::run();"); + eval(strtolower($COMMAND) . "::run(\$pass_args);"); } ?> |