diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-12 14:43:50 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-13 10:34:51 -0500 |
commit | 78bb4f6930b02aaaeb74d4d09c4a406da88ea98f (patch) | |
tree | 78ba200d5cd57fea82a9b824a4209abd20ad0497 /pts-core/phoronix-test-suite.php | |
parent | 3f51156bb15da98e5a9907af9993683af5da4e6c (diff) | |
download | phoronix-test-suite-upstream-78bb4f6930b02aaaeb74d4d09c4a406da88ea98f.tar.gz phoronix-test-suite-upstream-78bb4f6930b02aaaeb74d4d09c4a406da88ea98f.tar.xz phoronix-test-suite-upstream-78bb4f6930b02aaaeb74d4d09c4a406da88ea98f.zip |
pts-core: Start migrating all commands into options/ classes and using
the new phoronix-test-suite.php interface
Diffstat (limited to 'pts-core/phoronix-test-suite.php')
-rw-r--r-- | pts-core/phoronix-test-suite.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pts-core/phoronix-test-suite.php b/pts-core/phoronix-test-suite.php new file mode 100644 index 0000000..d7d910c --- /dev/null +++ b/pts-core/phoronix-test-suite.php @@ -0,0 +1,36 @@ +<?php + +/* + Phoronix Test Suite + URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/ + Copyright (C) 2008, Phoronix Media + Copyright (C) 2008, Michael Larabel + phoronix-test-suite.php: The main code for initalizing the Phoronix Test Suite (pts-core) client + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + + +require("pts-core/functions/pts-functions.php"); + +$COMMAND = $argv[1]; +pts_set_assignment("COMMAND", getenv("PTS_COMMAND")); + +if(is_file("pts-core/options/" . strtolower($COMMAND) . ".php")) +{ + include_once("pts-core/options/" . strtolower($COMMAND) . ".php"); + eval(strtolower($COMMAND) . "::run();"); +} + +?> |