. */ class install_dependencies implements pts_option_interface { public static function run($r) { pts_load_function_set("install"); $r = array_map("strtolower", $r); if(empty($r[0])) { echo "\nThe test or suite name to install external dependencies for must be supplied.\n"; } else { if($r[0] == "phoronix-test-suite" || $r[0] == "pts" || $r[0] == "trondheim-pts") { $pts_dependencies = array("php-gd", "php-extras", "build-utilities"); $packages_to_install = array(); $continue_install = pts_package_generic_to_distro_name($packages_to_install, $pts_dependencies); if($continue_install) { pts_install_packages_on_distribution_process($packages_to_install); } } else { pts_install_package_on_distribution($r[0]); } } } } ?>