diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-12 09:55:33 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-13 10:34:15 -0500 |
commit | e86cd227a3acd75c9c79a365e0c2ed4e3b4e3dbe (patch) | |
tree | 525020b6d8de36762451a6d5adb800a0f4d38331 /pts-core/pts-run-cmd.php | |
parent | 56a329682c95d67895ca2a0b24c9c0f70b6d2950 (diff) | |
download | phoronix-test-suite-upstream-e86cd227a3acd75c9c79a365e0c2ed4e3b4e3dbe.tar.gz phoronix-test-suite-upstream-e86cd227a3acd75c9c79a365e0c2ed4e3b4e3dbe.tar.xz phoronix-test-suite-upstream-e86cd227a3acd75c9c79a365e0c2ed4e3b4e3dbe.zip |
pts-core: Add pts_test_suite_details class
Diffstat (limited to 'pts-core/pts-run-cmd.php')
-rw-r--r-- | pts-core/pts-run-cmd.php | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/pts-core/pts-run-cmd.php b/pts-core/pts-run-cmd.php index a5f892f..ee2c292 100644 --- a/pts-core/pts-run-cmd.php +++ b/pts-core/pts-run-cmd.php @@ -185,37 +185,14 @@ switch($COMMAND) $has_partially_supported_suite = false; foreach(pts_available_suites_array() as $identifier) { - $xml_parser = new tandem_XmlReader(pts_location_suite($identifier)); - $name = $xml_parser->getXMLValue(P_SUITE_TITLE); - $test_type = $xml_parser->getXMLValue(P_SUITE_TYPE); + $suite_info = new pts_test_suite_details($identifier); - if(IS_DEBUG_MODE) + if($has_partially_supported_suite == false && $suite_info->partially_supported()) { - $version = $xml_parser->getXMLValue(P_SUITE_VERSION); - $type = $xml_parser->getXMLValue(P_SUITE_TYPE); - - printf("%-26ls - %-32ls %-4ls %-12ls\n", $identifier, $name, $version, $type); + $has_partially_supported_suite = true; } - else - { - $suite_support_code = pts_suite_supported($identifier); - - if($suite_support_code > 0) - { - $identifier_prefix = " "; - if($suite_support_code == 1) - { - $identifier_prefix = "*"; - if(!$has_partially_supported_suite) - { - $has_partially_supported_suite = true; - } - } - - printf("%-24ls - %-32ls [Type: %s]\n", $identifier_prefix . " " . $identifier, $name, $test_type); - } - } + echo $suite_info; } echo "\n"; if($has_partially_supported_suite) |