summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--EXPERIMENTAL-CHANGE-LOG1
-rw-r--r--documentation/writing_your_first_test.html3
-rw-r--r--pts-core/functions/pts-functions-run.php2
-rw-r--r--pts-core/functions/pts-functions.php2
-rw-r--r--pts-core/functions/pts-init.php2
5 files changed, 7 insertions, 3 deletions
diff --git a/EXPERIMENTAL-CHANGE-LOG b/EXPERIMENTAL-CHANGE-LOG
index 7377389..cf288a1 100644
--- a/EXPERIMENTAL-CHANGE-LOG
+++ b/EXPERIMENTAL-CHANGE-LOG
@@ -38,6 +38,7 @@ Phoronix Test Suite
- pts-core: In user-config.xml, change LogVerboseSystemDetails tag to SaveSystemDetails
- pts-core: If SAVE_BENCHMARK_LOGS environmental variable is set, is the same as setting SaveBenchmarkLogs to TRUE for that run
- pts-core: If SAVE_SYSTEM_DETAILS environmental variable is set, is the same as setting SaveSystemDetails to TRUE for that run
+- pts-core: Start on IS_PCQS_MODE define
- pts: Move pcqs tests out of tree
- pts: Switch all relevant test profiles using ArgumentName to using ArgumentPrefix
- pts: Move the byte test profile to using the new $LOG_FILE capability for an example and for testing
diff --git a/documentation/writing_your_first_test.html b/documentation/writing_your_first_test.html
index 9b12530..0550929 100644
--- a/documentation/writing_your_first_test.html
+++ b/documentation/writing_your_first_test.html
@@ -36,7 +36,8 @@ return 0;<br>
<p>The first step in the actual profile writing process is to name it. If you're
looking to ultimately push this profile to be included in the Phoronix Test Suite,
its name must be all lower case and consist of just alpha-numeric characters,
-but can contain dashes (-). For this sample profile, we're calling it <em>sample-program</em>
+but can contain dashes (-). A more advanced test profile capability is operating system prefixes, and if using those there is an
+underscore separating the prefix from the normal profile name. For this sample profile, we're calling it <em>sample-program</em>
and the file-name would be <em>sample-program.xml</em>. Our (very basic) profile is showcased
below.</p>
<blockquote>&lt;PhoronixTestSuite&gt;<br>
diff --git a/pts-core/functions/pts-functions-run.php b/pts-core/functions/pts-functions-run.php
index a7f1d75..b4d1e5d 100644
--- a/pts-core/functions/pts-functions-run.php
+++ b/pts-core/functions/pts-functions-run.php
@@ -511,7 +511,7 @@ function pts_run_test($test_identifier, $extra_arguments = "", $arguments_descri
if(is_file($benchmark_log_file))
{
- if(defined("TEST_RESULTS_IDENTIFIER") && (pts_string_bool(pts_read_user_config(P_OPTION_LOG_BENCHMARKFILES, "FALSE")) || getenv("SAVE_BENCHMARK_LOGS") != FALSE))
+ if(defined("TEST_RESULTS_IDENTIFIER") && (pts_string_bool(pts_read_user_config(P_OPTION_LOG_BENCHMARKFILES, "FALSE")) || IS_PCQS_MODE || getenv("SAVE_BENCHMARK_LOGS") != FALSE))
{
$backup_log_dir = SAVE_RESULTS_DIR . SAVE_FILE_NAME . "/benchmark-logs/" . TEST_RESULTS_IDENTIFIER . "/";
$backup_filename = basename($benchmark_log_file);
diff --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 129c0b6..775594c 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -193,7 +193,7 @@ function pts_save_result($save_to = null, $save_results = null)
}
$bool = file_put_contents(SAVE_RESULTS_DIR . $save_to, $save_results);
- if(defined("TEST_RESULTS_IDENTIFIER") && (pts_string_bool(pts_read_user_config(P_OPTION_LOG_VSYSDETAILS, "TRUE")) || getenv("SAVE_SYSTEM_DETAILS") != FALSE))
+ if(defined("TEST_RESULTS_IDENTIFIER") && (pts_string_bool(pts_read_user_config(P_OPTION_LOG_VSYSDETAILS, "TRUE")) || IS_PCQS_MODE || getenv("SAVE_SYSTEM_DETAILS") != FALSE))
{
// Save verbose system information here
if(!is_dir($save_to_dir . "/system-details/"))
diff --git a/pts-core/functions/pts-init.php b/pts-core/functions/pts-init.php
index 266d779..dd1dd56 100644
--- a/pts-core/functions/pts-init.php
+++ b/pts-core/functions/pts-init.php
@@ -177,6 +177,8 @@ function pts_extended_init()
define("IS_FIRST_RUN_TODAY", true);
else
define("IS_FIRST_RUN_TODAY", false);
+
+ define("IS_PCQS_MODE", false);
}
function __autoload($to_load)
{