Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 5f06622..1e34ba1 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -1,5 +1,9 @@
PHORONIX TEST SUITE CHANGE-LOG
+Phoronix Test Suite (git)
+
+- Add "External Dependencies" support
+
Phoronix Test Suite 0.2.0
April 6, 2008
diff --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index 50c896d..3eca2cc 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -81,7 +81,33 @@ function pts_install_benchmark($Benchmark)
echo ucwords($Benchmark) . " has no installation script, skipping installation routine...\n";
}
}
+function pts_external_dependency_generic($Name)
+{
+ $generic_information = "";
+
+ if(is_file(MISC_LOCATION . "distro-xml/generic-packages.xml"))
+ {
+ $xml_parser = new tandem_XmlReader(file_get_contents(MISC_LOCATION . "distro-xml/generic-packages.xml"));
+ $package_name = $xml_parser->getXMLValue("PhoronixTestSuite/Package/Name");
+ $title = $xml_parser->getXMLValue("PhoronixTestSuite/Package/Title");
+ $description = $xml_parser->getXMLValue("PhoronixTestSuite/Package/Description");
+ $possible_packages = $xml_parser->getXMLValue("PhoronixTestSuite/Package/PossibleNames");
+
+ $selection = -1;
+
+ for($i = 0; $i < count($title); $i++)
+ if($Name == $package_name[$i])
+ {
+ $selection = $i;
+ break;
+ }
+ if($selection != -1)
+ $generic_information = $title[$selection] . "\n" . $description[$selection] . "\n\nPossible Package Names: " . $possible_packages[$selection];
+ }
+
+ return $generic_information;
+}
function pts_install_external_dependencies($Benchmark, &$INSTALL_OBJ)
{
if(pts_benchmark_type($Benchmark) != "BENCHMARK")
<
Copyright © 2010 by Phoronix Media