public function __construct($new_values = null) { if (PTS_IS_DAEMONIZED_SERVER_PROCESS || is_file('/etc/phoronix-test-suite.xml') && is_writable('/etc/phoronix-test-suite.xml')) { $file = '/etc/phoronix-test-suite.xml'; } else { if (PTS_IS_CLIENT && is_file(pts_config::get_config_file_location())) { $file = pts_config::get_config_file_location(); } else { if (PTS_USER_PATH . 'user-config.xml' != pts_config::get_config_file_location() && is_file(PTS_USER_PATH . 'user-config.xml')) { $file = PTS_USER_PATH . 'user-config.xml'; } else { if (PTS_IS_CLIENT && is_file($t = PTS_CORE_STATIC_PATH . phodevi::read_property('system', 'vendor-identifier') . '-user-config-template.xml')) { $file = $t; } else { if (is_file(PTS_CORE_STATIC_PATH . 'user-config-template.xml')) { $file = PTS_CORE_STATIC_PATH . 'user-config-template.xml'; } else { if (is_file(PTS_CORE_STATIC_PATH . 'user-config-defaults.xml')) { $file = PTS_CORE_STATIC_PATH . 'user-config-defaults.xml'; } else { $file = null; } } } } } } $this->override_values = is_array($new_values) ? $new_values : false; parent::__construct($file); }
public function __construct($read_xml) { if (!isset($read_xml[1024]) && defined('PTS_SAVE_RESULTS_PATH') && is_file(PTS_SAVE_RESULTS_PATH . $read_xml . '/composite.xml')) { $read_xml = PTS_SAVE_RESULTS_PATH . $read_xml . '/composite.xml'; } if (defined('PTS_CACHING_XML_READER')) { $this->do_caching = true; } parent::__construct($read_xml); }
public function __construct($read_xml) { if (!isset($read_xml[512]) && !is_file($read_xml)) { if (defined('PTS_TEST_PROFILE_PATH') && is_file(PTS_TEST_PROFILE_PATH . $read_xml . '/test-definition.xml')) { $read_xml = PTS_TEST_PROFILE_PATH . $read_xml . '/test-definition.xml'; } else { if (substr($read_xml, -4) == '.zip' && is_file($read_xml)) { $zip = new ZipArchive(); if ($zip->open($read_xml) === true) { $read_xml = $zip->getFromName('test-definition.xml'); $zip->close(); } } } } $this->override_values = array(); parent::__construct($read_xml); }
public function __construct($read_xml) { if (!isset($xml_file[512]) && defined('PTS_TEST_SUITE_PATH') && is_file(PTS_TEST_SUITE_PATH . $read_xml . '/suite-definition.xml')) { $read_xml = PTS_TEST_SUITE_PATH . $read_xml . '/suite-definition.xml'; } else { if (substr($read_xml, -4) == '.zip' && is_file($read_xml)) { $zip = new ZipArchive(); if ($zip->open($read_xml) === true) { $read_xml = $zip->getFromName('suite-definition.xml'); $zip->close(); } } else { if (isset(self::$temp_suite[$read_xml])) { $read_xml = self::$temp_suite[$read_xml]; } } } parent::__construct($read_xml); }
public function __construct($read_xml) { parent::__construct($read_xml); }