Skip to content
Permalink
Browse files

Overhaul requirements checking in SKIPIF test stages

  • Loading branch information...
derickr committed Jun 4, 2019
1 parent 3b85308 commit c9e15543034d7b95173a6b5f7b9afcb4ca7926d0
Showing 343 changed files with 1,258 additions and 1,086 deletions.
@@ -323,7 +323,7 @@ function write_information()
'session' => array('session.auto_start=0'),
'tidy' => array('tidy.clean_output=0'),
'zlib' => array('zlib.output_compression=Off'),
'xdebug' => array('xdebug.default_enable=0'),
'xdebug' => array('xdebug.default_enable=0','xdebug.remote_enable=0'),
'mbstring' => array('mbstring.func_overload=0'),
);
@@ -3,9 +3,7 @@ Test for tracing property assignments in user-readable function traces (>= PHP 7
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.2', '>=') && opcache_active() ) ) {
echo "skip >= PHP 7.2 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.2; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,5 +1,5 @@
--TEST--
Test for tracing property assignments in user-readable function traces (< PHP 7.2 || no opcache)
Test for tracing property assignments in user-readable function traces (< PHP 7.2 || !opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
@@ -1,11 +1,9 @@
--TEST--
Test for tracing array assignments in user-readable function traces (= PHP 7.2, opcache)
Test for tracing array assignments in user-readable function traces (>= PHP 7.2, < PHP 7.3, opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.2', '>=') && runtime_version('7.3', '<') && opcache_active() ) ) {
echo "skip = PHP 7.2 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.2,< 7.3; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -3,9 +3,7 @@ Test for tracing array assignments in user-readable function traces (>= PHP 7.3.
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.3.2', '>=') && opcache_active() ) ) {
echo "skip >= PHP 7.3.2 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.3.2; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,5 +1,5 @@
--TEST--
Test for tracing array assignments in user-readable function traces (< PHP 7.2 || no opcache)
Test for tracing array assignments in user-readable function traces (< PHP 7.2 || !opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
@@ -3,9 +3,7 @@ Test for tracing assignments in user-readable function traces (< PHP 7.2, opcach
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.2', '<') && opcache_active() ) ) {
echo "skip < PHP 7.2 && opcache loaded needed\n";
}
check_reqs('PHP < 7.2; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -3,9 +3,7 @@ Test for tracing assignments in user-readable function traces (>= PHP 7.2, opcac
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.2', '>=') && opcache_active() ) ) {
echo "skip >= PHP 7.2 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.2; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,5 +1,5 @@
--TEST--
Test for tracing assignments in user-readable function traces (< PHP 7.2 || no opcache)
Test for tracing assignments in user-readable function traces (< PHP 7.2 || !opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
@@ -3,9 +3,7 @@ Test for tracing property assignments in user-readable function traces (>= PHP 7
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.2', '>=') && opcache_active() ) ) {
echo "skip >= PHP 7.2 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.2; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,5 +1,5 @@
--TEST--
Test for tracing property assignments in user-readable function traces (< PHP 7.2 || no opcache)
Test for tracing property assignments in user-readable function traces (< PHP 7.2 || !opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
@@ -1,9 +1,9 @@
--TEST--
Test for complex parameters to a function (= PHP 7.0)
Test for complex parameters to a function (< PHP 7.1)
--SKIPIF--
<?php
if (!version_compare(phpversion(), "7.0", '>=')) echo "skip = PHP 7.0 needed\n";
if (!version_compare(phpversion(), "7.1", '<')) echo "skip = PHP 7.0 needed\n";
require 'tests/utils.inc';
check_reqs('PHP < 7.1');
?>
--INI--
xdebug.default_enable=1
@@ -1,7 +1,10 @@
--TEST--
Test for complex parameters to a function (>= PHP 7.1)
--SKIPIF--
<?php if (!version_compare(phpversion(), "7.1", '>=')) echo "skip >= PHP 7.1 needed\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('PHP >= 7.1');
?>
--INI--
xdebug.default_enable=1
xdebug.collect_params=1
@@ -1,8 +1,10 @@
--TEST--
Test for bug #173: Xdebug segfaults using SPL ArrayIterator
--SKIPIF--
<?php if (!extension_loaded("xdebug")) print "skip"; ?>
<?php if (!extension_loaded("SPL")) print "skip No SPL available"; ?>
<?php
require 'tests/utils.inc';
check_reqs('ext SPL');
?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=1
@@ -1,8 +1,10 @@
--TEST--
Test for bug #176: Segfault using SplTempFileObject
--SKIPIF--
<?php if (!extension_loaded("xdebug")) print "skip"; ?>
<?php if (!extension_loaded("SPL")) print "skip No SPL available"; ?>
<?php
require 'tests/utils.inc';
check_reqs('ext SPL');
?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
@@ -1,9 +1,9 @@
--TEST--
Test for bug #212: coverage coverage inaccurate (1) (>= PHP 7.0, <= PHP 7.0.12)
Test for bug #212: coverage coverage inaccurate (1) (<= PHP 7.0.12)
--SKIPIF--
<?php
if (!version_compare(phpversion(), "7.0", '>=')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
if (version_compare(phpversion(), "7.0.12", '>')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
require 'tests/utils.inc';
check_reqs('PHP <= 7.0.12');
?>
--INI--
xdebug.default_enable=1
@@ -1,7 +1,10 @@
--TEST--
Test for bug #212: coverage coverage inaccurate (1) (>= PHP 7.1)
--SKIPIF--
<?php if (!version_compare(phpversion(), "7.1", '>=')) echo "skip >= PHP 7.1 needed\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('PHP >= 7.1');
?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
@@ -1,9 +1,9 @@
--TEST--
Test for bug #212: coverage coverage inaccurate (2) (>= PHP 7.0, <= PHP 7.0.12)
Test for bug #212: coverage coverage inaccurate (2) (<= PHP 7.0.12)
--SKIPIF--
<?php
if (!version_compare(phpversion(), "7.0", '>=')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
if (version_compare(phpversion(), "7.0.12", '>')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
require 'tests/utils.inc';
check_reqs('PHP <= 7.0.12');
?>
--INI--
xdebug.default_enable=1
@@ -1,7 +1,10 @@
--TEST--
Test for bug #212: coverage coverage inaccurate (2) (> PHP 7.0.12)
--SKIPIF--
<?php if (!version_compare(phpversion(), "7.0.12", '>')) echo "skip > PHP 7.0.12 needed\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('PHP > 7.0.12');
?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
@@ -1,9 +1,9 @@
--TEST--
Test for bug #212: coverage coverage inaccurate (3) (>= PHP 7.0, <= PHP 7.0.12)
Test for bug #212: coverage coverage inaccurate (3) (<= PHP 7.0.12)
--SKIPIF--
<?php
if (!version_compare(phpversion(), "7.0", '>=')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
if (version_compare(phpversion(), "7.0.12", '>')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
require 'tests/utils.inc';
check_reqs('PHP <= 7.0.12');
?>
--INI--
xdebug.default_enable=1
@@ -1,7 +1,10 @@
--TEST--
Test for bug #212: coverage coverage inaccurate (3) (> PHP 7.0.12)
--SKIPIF--
<?php if (!version_compare(phpversion(), "7.0.12", '>')) echo "skip > PHP 7.0.12 needed\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('PHP > 7.0.12');
?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
@@ -3,9 +3,7 @@ Test for bug #213: Dead code analysis doesn't take catches for throws into accou
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.0.12', '>') && runtime_version('7.1', '<') && opcache_active() ) ) {
echo "skip > PHP 7.0.12 && < PHP 7.1 && opcache loaded needed\n";
}
check_reqs('PHP > 7.0.12,< 7.1; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,9 +1,9 @@
--TEST--
Test for bug #213: Dead code analysis doesn't take catches for throws into account (>= PHP 7.0, <= PHP 7.0.12)
Test for bug #213: Dead code analysis doesn't take catches for throws into account (<= PHP 7.0.12)
--SKIPIF--
<?php
if (!version_compare(phpversion(), "7.0", '>=')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
if (version_compare(phpversion(), "7.0.12", '>')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
require 'tests/utils.inc';
check_reqs('PHP <= 7.0.12');
?>
--INI--
xdebug.default_enable=1
@@ -3,9 +3,7 @@ Test for bug #213: Dead code analysis doesn't take catches for throws into accou
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.1', '>=') && opcache_active() ) ) {
echo "skip >= PHP 7.1 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.1; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,8 +1,10 @@
--TEST--
Test for bug #213: Dead code analysis doesn't take catches for throws into account (> PHP 7.0.12)
Test for bug #213: Dead code analysis doesn't take catches for throws into account (> PHP 7.0.12, !opcache)
--SKIPIF--
<?php if (!version_compare(phpversion(), "7.0.12", '>')) echo "skip > PHP 7.0.12 needed\n"; ?>
<?php if (extension_loaded('zend opcache')) echo "skip opcache should not be loaded\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('PHP > 7.0.12; !opcache');
?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
@@ -1,7 +1,10 @@
--TEST--
Test for bug #314: PHP CLI Error logging thwarted when Xdebug loaded (Windows)
--SKIPIF--
<?php if (substr(PHP_OS, 0, 3) != "WIN") { exit("skip For Windows only"); } ?>
<?php
require 'tests/utils.inc';
check_reqs('win');
?>
--INI--
xdebug.default_enable=1
xdebug.dump_globals=0
@@ -1,8 +1,10 @@
--TEST--
Test for bug #314: PHP CLI Error logging thwarted when Xdebug loaded
--SKIPIF--
<?php if (substr(PHP_OS, 0, 3) == "WIN") { exit("skip Not for Windows"); } ?>
<?php if (getenv("SKIP_UNPARALLEL_TESTS")) { exit("skip Excluding tests that can not be run in parallel"); } ?>
<?php
require 'tests/utils.inc';
check_reqs('!win; unparallel');
?>
--INI--
xdebug.default_enable=1
xdebug.dump_globals=0
@@ -3,9 +3,7 @@ Test for bug #334: Code Coverage Regressions (> PHP 7.0.12, < PHP 7.1, opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.0.12', '>') && runtime_version('7.1', '<') && opcache_active() ) ) {
echo "skip > PHP 7.0.12 && < PHP 7.1 && opcache loaded needed\n";
}
check_reqs('PHP > 7.0.12,< 7.1; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,9 +1,9 @@
--TEST--
Test for bug #334: Code Coverage Regressions (>= PHP 7.0, <= PHP 7.0.12)
Test for bug #334: Code Coverage Regressions (<= PHP 7.0.12)
--SKIPIF--
<?php
if (!version_compare(phpversion(), "7.0", '>=')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
if (version_compare(phpversion(), "7.0.12", '>')) echo "skip >= PHP 7.0, <= PHP 7.0.12 needed\n";
require 'tests/utils.inc';
check_reqs('PHP <= 7.0.12');
?>
--INI--
xdebug.default_enable=1
@@ -3,9 +3,7 @@ Test for bug #334: Code Coverage Regressions (>= PHP 7.1, opcache)
--SKIPIF--
<?php
require 'tests/utils.inc';
if ( ! ( runtime_version('7.1', '>=') && opcache_active() ) ) {
echo "skip >= PHP 7.1 && opcache loaded needed\n";
}
check_reqs('PHP >= 7.1; opcache');
?>
--INI--
xdebug.default_enable=1
@@ -1,8 +1,10 @@
--TEST--
Test for bug #334: Code Coverage Regressions (> PHP 7.0.12)
Test for bug #334: Code Coverage Regressions (> PHP 7.0.12, !opcache)
--SKIPIF--
<?php if (!version_compare(phpversion(), "7.0.12", '>')) echo "skip > PHP 7.0.12 needed\n"; ?>
<?php if (extension_loaded('zend opcache')) echo "skip opcache should not be loaded\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('PHP > 7.0.12; !opcache');
?>
--INI--
xdebug.default_enable=1
xdebug.dump_globals=0
@@ -1,7 +1,10 @@
--TEST--
Test for bug #419: make use of P_tmpdir if defined instead of hardcoded '/tmp'
--SKIPIF--
<?php if (php_uname('s') != 'SunOS') echo "skip Solaris/OpenSolaris/OpenIndiana needed\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('sunos');
?>
--FILE--
<?php
echo ini_get( 'xdebug.trace_output_dir' ), "\n";
@@ -1,7 +1,10 @@
--TEST--
Test for bug #419: make use of P_tmpdir if defined instead of hardcoded '/tmp'
--SKIPIF--
<?php if (php_uname('s') != 'Linux') echo "skip Linux needed\n"; ?>
<?php
require 'tests/utils.inc';
check_reqs('linux');
?>
--FILE--
<?php
echo ini_get( 'xdebug.trace_output_dir' ), "\n";
@@ -2,8 +2,8 @@
Test for bug #421: xdebug sends back invalid characters in xml sometimes
--SKIPIF--
<?php
if (getenv("SKIP_DBGP_TESTS")) { exit("skip Excluding DBGp tests"); }
if (in_array('SimpleXMLIterator', get_declared_classes()) == false) { echo "skip SimpleXML extension required\n"; }
require 'tests/utils.inc';
check_reqs('dbgp; class SimpleXMLIterator');
?>
--FILE--
<?php

0 comments on commit c9e1554

Please sign in to comment.
You can’t perform that action at this time.