raphf
Resource and persistent handle factory API
 All Data Structures Files Functions Variables Typedefs Macros
Functions | Variables
run-tests.php File Reference

Functions

if(getenv('TEST_PHP_EXECUTABLE'))
if(getenv('TEST_PHP_CGI_EXECUTABLE')) 
verify_config ()
 
 write_information ($show_html)
 
 save_or_mail_results ()
 
foreach($optionals as $dir)
foreach($exts_to_test as $key=>
$val) foreach($test_dirs as
$dir) foreach($user_tests as
$dir) 
find_files ($dir, $is_ext_dir=false, $ignore=false)
 
 test_name ($name)
 
 test_sort ($a, $b)
 
 mail_qa_team ($data, $compression, $status=false)
 
 save_text ($filename, $text, $filename_copy=null)
 
 error_report ($testname, $logname, $tested)
 
 system_with_timeout ($commandline, $env=null, $stdin=null)
 
 run_all_tests ($test_files, $env, $redir_tested=null)
 
 show_file_block ($file, $block, $section=null)
 
 run_test ($php, $file, $env)
 
 comp_line ($l1, $l2, $is_reg)
 
 count_array_diff ($ar1, $ar2, $is_reg, $w, $idx1, $idx2, $cnt1, $cnt2, $steps)
 
 generate_array_diff ($ar1, $ar2, $is_reg, $w)
 
 generate_diff ($wanted, $wanted_re, $output)
 
 error ($message)
 
 settings2array ($settings, &$ini_settings)
 
 settings2params (&$ini_settings)
 
 compute_summary ()
 
 get_summary ($show_ext_summary, $show_html)
 
 show_start ($start_time)
 
 show_end ($end_time)
 
 show_summary ()
 
 show_redirect_start ($tests, $tested, $tested_file)
 
 show_redirect_ends ($tests, $tested, $tested_file)
 
 show_test ($test_idx, $shortname)
 
 show_result ($result, $tested, $tested_file, $extra= '', $temp_filenames=null)
 
 junit_init ()
 
 junit_save_xml ()
 
 junit_get_suite_xml ($suite_name= '')
 
 junit_enabled ()
 
 junit_mark_test_as ($type, $file_name, $test_name, $time=null, $message= '', $details= '')
 
 junit_suite_record ($suite, $param, $value=1)
 
 junit_get_timer ($file_name)
 
 junit_start_timer ($file_name)
 
 junit_get_suitename_for ($file_name)
 
 junit_path_to_classname ($file_name)
 
 junit_init_suite ($suite_name)
 
 junit_finish_timer ($file_name)
 

Variables

if(!extension_loaded('pcre'))
if(!function_exists('proc_open'))
if(!defined("PHP_VERSION_ID"))
if(PHP_VERSION_ID< 50300) if(ini_get('date.timezone')== '') 
$CUR_DIR = getcwd()
 
 $cwd = getcwd()
 
 $valgrind_version = 0
 
 $valgrind_header = ''
 
if(PHP_MAJOR_VERSION< 6) $environment = isset($_ENV) ? $_ENV : array()
 
if((substr(PHP_OS, 0, 3)=="WIN")&&empty($environment["SystemRoot"])) $php = null
 
 $php_cgi = null
 
if(getenv('TEST_PHP_LOG_FORMAT')) else
 
 $exts_to_test = array()
 
 $ini_overwrites
 
const PHP_QA_EMAIL 'qa-reports@lists.php.net'
 
const QA_SUBMISSION_PAGE 'http://qa.php.net/buildtest-process.php'
 
const QA_REPORTS_PAGE 'http://qa.php.net/reports'
 
 $test_files = array()
 
 $redir_tests = array()
 
 $test_results = array()
 
 $PHP_FAILED_TESTS = array('BORKED' => array(), 'FAILED' => array(), 'WARNED' => array(), 'LEAKED' => array(), 'XFAILED' => array())
 
 $failed_tests_file = false
 
 $pass_option_n = false
 
 $pass_options = ''
 
 $compression = 0
 
 $output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . '.txt'
 
if($compression) $just_save_results = false
 
 $leak_check = false
 
 $html_output = false
 
 $html_file = null
 
 $temp_source = null
 
 $temp_target = null
 
 $temp_urlbase = null
 
 $conf_passed = null
 
 $no_clean = false
 
 $cfgtypes = array('show', 'keep')
 
 $cfgfiles = array('skip', 'php', 'clean', 'out', 'diff', 'exp')
 
 $cfg = array()
 
 $exts_tested = count($exts_to_test)
 
 $exts_skipped = 0
 
 $ignored_by_ext = 0
 
 $test_dirs = array()
 
 $optionals = array('tests', 'ext', 'Zend', 'ZendEngine2', 'sapi/cli', 'sapi/cgi')
 
 $start_time = time()
 
 $test_cnt = count($test_files)
 
 $test_idx = 0
 
 $end_time = time()
 

Function Documentation

comp_line (   $l1,
  $l2,
  $is_reg 
)
compute_summary ( )
count_array_diff (   $ar1,
  $ar2,
  $is_reg,
  $w,
  $idx1,
  $idx2,
  $cnt1,
  $cnt2,
  $steps 
)
error (   $message)
error_report (   $testname,
  $logname,
  $tested 
)
foreach ($optionals as $dir) foreach ($exts_to_test as $key=> $val) foreach ($test_dirs as $dir) foreach ($user_tests as $dir) find_files (   $dir,
  $is_ext_dir = false,
  $ignore = false 
)
generate_array_diff (   $ar1,
  $ar2,
  $is_reg,
  $w 
)
generate_diff (   $wanted,
  $wanted_re,
  $output 
)
get_summary (   $show_ext_summary,
  $show_html 
)
junit_enabled ( )
junit_finish_timer (   $file_name)
junit_get_suite_xml (   $suite_name = '')
junit_get_suitename_for (   $file_name)
junit_get_timer (   $file_name)
junit_init ( )
junit_init_suite (   $suite_name)
junit_mark_test_as (   $type,
  $file_name,
  $test_name,
  $time = null,
  $message = '',
  $details = '' 
)
Parameters
array | string$type
string$file_name
string$test_name
int | string$time
string$message
string$details
Returns
void
junit_path_to_classname (   $file_name)
junit_save_xml ( )
junit_start_timer (   $file_name)
junit_suite_record (   $suite,
  $param,
  $value = 1 
)
mail_qa_team (   $data,
  $compression,
  $status = false 
)
run_all_tests (   $test_files,
  $env,
  $redir_tested = null 
)
run_test (   $php,
  $file,
  $env 
)
save_or_mail_results ( )
save_text (   $filename,
  $text,
  $filename_copy = null 
)
settings2array (   $settings,
$ini_settings 
)
settings2params ( $ini_settings)
show_end (   $end_time)
show_file_block (   $file,
  $block,
  $section = null 
)
show_redirect_ends (   $tests,
  $tested,
  $tested_file 
)
show_redirect_start (   $tests,
  $tested,
  $tested_file 
)
show_result (   $result,
  $tested,
  $tested_file,
  $extra = '',
  $temp_filenames = null 
)
show_start (   $start_time)
show_summary ( )
show_test (   $test_idx,
  $shortname 
)
system_with_timeout (   $commandline,
  $env = null,
  $stdin = null 
)
test_name (   $name)
test_sort (   $a,
  $b 
)
if (getenv('TEST_PHP_EXECUTABLE')) if (getenv('TEST_PHP_CGI_EXECUTABLE')) verify_config ( )
write_information (   $show_html)

Variable Documentation

$cfg = array()
$cfgfiles = array('skip', 'php', 'clean', 'out', 'diff', 'exp')
$cfgtypes = array('show', 'keep')
$compression = 0
$conf_passed = null
if (!extension_loaded('pcre')) if (!function_exists('proc_open')) if (!defined("PHP_VERSION_ID")) if (PHP_VERSION_ID< 50300) if (ini_get('date.timezone')== '') $CUR_DIR = getcwd()
$cwd = getcwd()
$end_time = time()
if (PHP_MAJOR_VERSION< 6) $environment = isset($_ENV) ? $_ENV : array()
$exts_skipped = 0
$exts_tested = count($exts_to_test)
$exts_to_test = array()
$failed_tests_file = false
$html_file = null
$html_output = false
$ignored_by_ext = 0
$ini_overwrites
Initial value:
= array(
'output_handler=',
'open_basedir=',
'safe_mode=0',
'disable_functions=',
'output_buffering=Off',
'error_reporting=' . (E_ALL | E_STRICT),
'display_errors=1',
'display_startup_errors=1',
'log_errors=0',
'html_errors=0',
'track_errors=1',
'report_memleaks=1',
'report_zend_debug=0',
'docref_root=',
'docref_ext=.html',
'error_prepend_string=',
'error_append_string=',
'auto_prepend_file=',
'auto_append_file=',
'magic_quotes_runtime=0',
'ignore_repeated_errors=0',
'precision=14',
'memory_limit=128M',
)
if ($compression) $just_save_results = false
$leak_check = false
$no_clean = false
$optionals = array('tests', 'ext', 'Zend', 'ZendEngine2', 'sapi/cli', 'sapi/cgi')
$output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . '.txt'
$pass_option_n = false
$pass_options = ''
if ((substr(PHP_OS, 0, 3)=="WIN")&&empty($environment["SystemRoot"])) $php = null
$php_cgi = null
$PHP_FAILED_TESTS = array('BORKED' => array(), 'FAILED' => array(), 'WARNED' => array(), 'LEAKED' => array(), 'XFAILED' => array())
$redir_tests = array()
$start_time = time()
$temp_source = null
$temp_target = null
$temp_urlbase = null
$test_cnt = count($test_files)
$test_dirs = array()
$test_files = array()
$test_idx = 0
$test_results = array()
$valgrind_header = ''
$valgrind_version = 0
if (getenv('TEST_PHP_USER')) else
Initial value:
{
$log_format = 'LEODS'
const PHP_QA_EMAIL 'qa-reports@lists.php.net'
const QA_REPORTS_PAGE 'http://qa.php.net/reports'
const QA_SUBMISSION_PAGE 'http://qa.php.net/buildtest-process.php'