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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 5/21/13 15:49
Michael Larabel  
Phoronix Test Suite... 
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
 
> --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index 16246aa
..de127cc 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -316,+316,11 @@ function pts_install_test($identifier)
     {
         if(!
pts_test_architecture_supported($identifier))
         {
-            echo 
pts_string_header($identifier " is not supported on this platform (" kernel_arch() . ").");
+            echo 
pts_string_header($identifier " is not supported with this processor architecture (" kernel_arch() . ").");
+        }
+        else if(!
pts_test_platform_supported($identifier))
+        {
+            echo 
pts_string_header($identifier " is not supported by this operating system (" OPERATING_SYSTEM ").");
         }
         else
         {
@@ -
618,+622,30 @@ function pts_test_architecture_supported($identifier)

     return 
$supported;
 }
+function 
pts_test_platform_supported($identifier)
+{
+    
// Check if the system's OS is supported by a test
+    $supported true;
+
+    if(
is_file(XML_PROFILE_DIR $identifier ".xml"))
+    {
+         
$xml_parser = new tandem_XmlReader(XML_PROFILE_DIR $identifier ".xml");
+        
$platforms $xml_parser->getXMLValue(P_TEST_SUPPORTEDPLATFORMS);
+
+        if(!empty(
$platforms))
+        {
+            
$platforms explode(","$platforms);
+
+            foreach(
$platforms as $key => $value)
+                
$platforms[$key] = trim($value);
+
+            if(!
in_array(OPERATING_SYSTEM$platforms) && OPERATING_SYSTEM != "Unknown")
+                
$supported false;
+        }
+    }
+
+    return 
$supported;
+}
 function 
pts_estimated_download_size($identifier)
 {
     
// Estimate the size of files to be downloaded
diff --git a/pts-core/functions/pts-interfaces.php b/pts-core/functions/pts-interfaces.php
index ffb39d2
..873d104 100644
--- a/pts-core/functions/pts-interfaces.php
+++ b/pts-core/functions/pts-interfaces.php
@@ -46,+46,@@ define("P_TEST_MAINTAINER""PhoronixTestSuite/TestProfile/Maintainer"); // Test
 
define("P_TEST_LICENSE""PhoronixTestSuite/TestProfile/License"); // Test software license
 
define("P_TEST_STATUS""PhoronixTestSuite/TestProfile/Status"); // The status of the test profile
 
define("P_TEST_SUPPORTEDARCHS""PhoronixTestSuite/TestProfile/SupportedArchitectures"); // The system architectures supported by this test
+define("P_TEST_SUPPORTEDPLATFORMS""PhoronixTestSuite/TestProfile/SupportedPlatforms"); // The OS software platforms supported by this test
 
define("P_TEST_ROOTNEEDED""PhoronixTestSuite/TestProfile/RequiresRoot"); // Is root access needed? (TODO: Implement RequiresRoot)
 
define("P_TEST_DOWNLOADSIZE""PhoronixTestSuite/TestProfile/DownloadSize"); // Estimated size of capacity needed for downloads (in MB)
 
define("P_TEST_ENVIRONMENTSIZE""PhoronixTestSuite/TestProfile/EnvironmentSize"); // Estimated size of capacity needed for testing environment (in MB)
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media