projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 10/28/14 19:38

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 10/28/14 19:38
Michael Larabel  
pts-core: Add 3840 x 2160... 
Sat 10/25/14 20:09
Michael Larabel  
phoromatic: Implement... 
Sat 10/25/14 20:02
Michael Larabel  
phoromatic: Improve... 
Fri 10/24/14 15:59
Michael Larabel  
phoromatic: 4 username... 
Fri 10/24/14 12:06
Michael Larabel  
phoromatic: Add today's... 
Fri 10/24/14 11:52
Michael Larabel  
phoromatic: Add a... 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 9ee41b9
..9fd4c13 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -12,+12,@@ Phoronix Test Suite (git)
 - 
Many "External Dependencies" improvementsNeeds testing and more distribution profiles!
 - 
Add "install-dependencies pts" for installing some PTS dependencies for itselfaside from php-cli.
 - 
Introduce Fedora support for External DependenciesOnly tested with Fedora 8.92.
+- 
Shutdown screensaver when running phoronix-test-suiteCurrently 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
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media