summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_tests.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-03 07:49:52 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-03 07:49:52 -0400
commitd444086d93600e0c2308dae49e06e40a0f111bff (patch)
tree15ea9d8c48d793a50ab1553de4132cc715257f55 /pts-core/functions/pts-functions_tests.php
parent33ec438fc30e3ef048f07e7189038e1ebab61409 (diff)
downloadphoronix-test-suite-upstream-d444086d93600e0c2308dae49e06e40a0f111bff.tar.gz
phoronix-test-suite-upstream-d444086d93600e0c2308dae49e06e40a0f111bff.tar.xz
phoronix-test-suite-upstream-d444086d93600e0c2308dae49e06e40a0f111bff.zip
pts-core: Add UnsupportedPlatforms tag to test profiles, which is
evaluated the opposite of SupportedPlatforms Looks like a few pts_Graph SVG fixes are also squeezed in.
Diffstat (limited to 'pts-core/functions/pts-functions_tests.php')
-rw-r--r--pts-core/functions/pts-functions_tests.php26
1 files changed, 20 insertions, 6 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index 9d505a6..a734c86 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -240,16 +240,30 @@ function pts_test_platform_supported($identifier)
{
$xml_parser = new pts_test_tandem_XmlReader(pts_location_test($identifier));
$platforms = $xml_parser->getXMLValue(P_TEST_SUPPORTEDPLATFORMS);
+ $un_platforms = $xml_parser->getXMLValue(P_TEST_UNSUPPORTEDPLATFORMS);
- if(!empty($platforms))
+ if(OPERATING_SYSTEM != "Unknown")
{
- $platforms = explode(",", $platforms);
+ if(!empty($un_platforms))
+ {
+ $un_platforms = explode(",", $un_platforms);
- foreach($platforms as $key => $value)
- $platforms[$key] = trim($value);
+ foreach($un_platforms as $key => $value)
+ $un_platforms[$key] = trim($value);
- if(!in_array(OPERATING_SYSTEM, $platforms) && OPERATING_SYSTEM != "Unknown")
- $supported = false;
+ if(in_array(OPERATING_SYSTEM, $un_platforms))
+ $supported = false;
+ }
+ if(!empty($platforms))
+ {
+ $platforms = explode(",", $platforms);
+
+ foreach($platforms as $key => $value)
+ $platforms[$key] = trim($value);
+
+ if(!in_array(OPERATING_SYSTEM, $platforms))
+ $supported = false;
+ }
}
}