summaryrefslogtreecommitdiffstats
path: root/pts-core/phoronix-test-suite.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-12 21:49:49 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-13 10:34:51 -0500
commit5f7521b85f08bc0149e8b7a5ccddbf5e499b5461 (patch)
treedc8110d07e1d747a4de4f8ef1b55ad94fd1d633a /pts-core/phoronix-test-suite.php
parent48afb02228568e10ba62dc5de813d31fcfcf42c2 (diff)
downloadphoronix-test-suite-upstream-5f7521b85f08bc0149e8b7a5ccddbf5e499b5461.tar.gz
phoronix-test-suite-upstream-5f7521b85f08bc0149e8b7a5ccddbf5e499b5461.tar.xz
phoronix-test-suite-upstream-5f7521b85f08bc0149e8b7a5ccddbf5e499b5461.zip
pts-core: Relocate initialization code to be called from
phoronix-test-suite.php
Diffstat (limited to 'pts-core/phoronix-test-suite.php')
-rw-r--r--pts-core/phoronix-test-suite.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/pts-core/phoronix-test-suite.php b/pts-core/phoronix-test-suite.php
index 024c2f8..ca62ef9 100644
--- a/pts-core/phoronix-test-suite.php
+++ b/pts-core/phoronix-test-suite.php
@@ -23,6 +23,24 @@
require("pts-core/functions/pts-functions.php");
+pts_init(); // Initalize the Phoronix Test Suite (pts-core) client
+
+// Register PTS Process
+if(pts_process_active("phoronix-test-suite"))
+{
+ echo pts_string_header("WARNING: It appears that the Phoronix Test Suite is already running...\nFor proper results, only run one instance at a time.");
+}
+pts_process_register("phoronix-test-suite");
+register_shutdown_function("pts_shutdown");
+
+// Module start process
+if(function_exists("pts_module_start_process"))
+{
+ pts_module_start_process();
+}
+
+// Etc
+$PTS_GLOBAL_ID = 1;
pts_set_assignment("COMMAND", getenv("PTS_COMMAND"));