Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 9ee41b9..9fd4c13 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -12,6 +12,7 @@ Phoronix Test Suite (git)
- Many "External Dependencies" improvements. Needs testing and more distribution profiles!
- Add "install-dependencies pts" for installing some PTS dependencies for itself, aside from php-cli.
- Introduce Fedora support for External Dependencies. Only tested with Fedora 8.92.
+- Shutdown screensaver when running phoronix-test-suite. Currently only GNOME screensaver is supported with detection through GConf. If that doesn't work, then xdg-screensaver reset is ran before each test is executed.
- Other fixes and clean ups
Phoronix Test Suite 0.2.1
diff --git a/pts-core/functions/pts-functions_config.php b/pts-core/functions/pts-functions_config.php
index 4291044..3f19e66 100644
--- a/pts-core/functions/pts-functions_config.php
+++ b/pts-core/functions/pts-functions_config.php
@@ -25,6 +25,7 @@ function pts_user_config_init()
$config->addXmlObject("PhoronixTestSuite/Options/BatchMode/SaveResults", 3, pts_read_user_config("PhoronixTestSuite/Options/BatchMode/SaveResults", "TRUE", $read_config));
$config->addXmlObject("PhoronixTestSuite/Options/BatchMode/OpenBrowser", 3, pts_read_user_config("PhoronixTestSuite/Options/BatchMode/OpenBrowser", "FALSE", $read_config));
$config->addXmlObject("PhoronixTestSuite/Options/BatchMode/UploadResults", 3, pts_read_user_config("PhoronixTestSuite/Options/BatchMode/UploadResults", "TRUE", $read_config));
+ $config->addXmlObject("PhoronixTestSuite/Options/BatchMode/PromptForTestIdentifier", 3, pts_read_user_config("PhoronixTestSuite/Options/BatchMode/PromptForTestIdentifier", "TRUE", $read_config));
file_put_contents(PTS_USER_DIR . "user-config.xml", $config->getXML());
}
diff --git a/pts-core/pts-run-benchmark.php b/pts-core/pts-run-benchmark.php
index 391da06..b6b9807 100644
--- a/pts-core/pts-run-benchmark.php
+++ b/pts-core/pts-run-benchmark.php
@@ -53,11 +53,12 @@ if(!$TO_RUN_TYPE)
$PROPOSED_FILE_NAME = $TO_RUN;
$RES_NULL = null;
- do
- {
- echo "Enter a unique identifier for distinguishing this series of tests: ";
- $RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
- }while(empty($RESULTS_IDENTIFIER));
+ if(!defined("PTS_BATCH_MODE") || pts_read_user_config("PhoronixTestSuite/Options/BatchMode/PromptForTestIdentifier", "TRUE") == "TRUE")
+ do
+ {
+ echo "Enter a unique identifier for distinguishing this series of tests: ";
+ $RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
+ }while(empty($RESULTS_IDENTIFIER));
$RESULTS = new tandem_XmlWriter();
}
@@ -70,11 +71,12 @@ if(!$TO_RUN_TYPE)
pts_save_benchmark_file($PROPOSED_FILE_NAME, $RES_NULL, file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_RUN"));
- do
- {
- echo "Enter a unique identifier for distinguishing this series of tests: ";
- $RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
- }while(empty($RESULTS_IDENTIFIER));
+ if(!defined("PTS_BATCH_MODE") || pts_read_user_config("PhoronixTestSuite/Options/BatchMode/PromptForTestIdentifier", "TRUE") == "TRUE")
+ do
+ {
+ echo "Enter a unique identifier for distinguishing this series of tests: ";
+ $RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
+ }while(empty($RESULTS_IDENTIFIER));
$RESULTS = new tandem_XmlWriter();
}
@@ -107,11 +109,12 @@ else
if(empty($PROPOSED_FILE_NAME))
$PROPOSED_FILE_NAME = date("Y-m-d-Hi");
- do
- {
- echo "Enter a unique identifier for distinguishing this series of tests: ";
- $RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
- }while(empty($RESULTS_IDENTIFIER));
+ if(!defined("PTS_BATCH_MODE") || pts_read_user_config("PhoronixTestSuite/Options/BatchMode/PromptForTestIdentifier", "TRUE") == "TRUE")
+ do
+ {
+ echo "Enter a unique identifier for distinguishing this series of tests: ";
+ $RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
+ }while(empty($RESULTS_IDENTIFIER));
$RESULTS = new tandem_XmlWriter();
@@ -119,6 +122,9 @@ else
}
}
+if(!isset($RESULTS_IDENTIFIER) || empty($RESULTS_IDENTIFIER))
+ $RESULTS_IDENTIFIER = date("Y-m-d H:i");
+
if($TO_RUN_TYPE == "BENCHMARK")
{
$xml_parser = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION .&n
Copyright © 2013 by Phoronix Media