public static function is_module_setup()
 {
     $module_name = self::module_name();
     $is_setup = true;
     $module_setup_options = pts_module_manager::module_call($module_name, "module_setup");
     foreach ($module_setup_options as $option) {
         if ($option instanceof pts_module_option) {
             if (pts_module::read_option($option->get_identifier()) == false && $option->setup_check_needed()) {
                 $is_setup = false;
                 break;
             }
         }
     }
     return $is_setup;
 }
 public static function __post_run_process(&$object)
 {
     $executable = pts_module::read_option('post_test_process');
     self::process_user_config_external_hook_process('post_test_process', $executable, 'Running the post-test process external hook', $object);
 }
示例#3
0
 protected static function phoromatic_setup_module()
 {
     if (!pts_module::is_module_setup()) {
         echo PHP_EOL . 'You first must run:' . PHP_EOL . PHP_EOL . 'phoronix-test-suite module-setup phoromatic' . PHP_EOL . PHP_EOL;
         return false;
     }
     self::$phoromatic_host = pts_module::read_option('remote_host');
     self::$phoromatic_account = pts_module::read_option('remote_account');
     self::$phoromatic_verifier = pts_module::read_option('remote_verifier');
     self::$phoromatic_system = pts_module::read_option('remote_system');
     if (extension_loaded('openssl') == false) {
         // OpenSSL is not supported therefore no HTTPS support
         self::$phoromatic_host = str_replace('https://', 'http://', self::$phoromatic_host);
     }
     $phoromatic = 'phoromatic';
     pts_module_manager::attach_module($phoromatic);
     return true;
 }