]> granicus.if.org Git - php/commitdiff
Replace custom "stress_test" setting with generic SKIP_SLOW_TESTS
authorChristopher Jones <sixd@php.net>
Thu, 3 Nov 2011 21:52:59 +0000 (21:52 +0000)
committerChristopher Jones <sixd@php.net>
Thu, 3 Nov 2011 21:52:59 +0000 (21:52 +0000)
15 files changed:
ext/oci8/tests/bug42496_1.phpt
ext/oci8/tests/bug42496_2.phpt
ext/oci8/tests/bug43497.phpt
ext/oci8/tests/bug43497_92.phpt
ext/oci8/tests/bug44113.phpt
ext/oci8/tests/conn_attr_4.phpt
ext/oci8/tests/details.inc
ext/oci8/tests/error2.phpt
ext/oci8/tests/extauth_01.phpt
ext/oci8/tests/extauth_02.phpt
ext/oci8/tests/extauth_03.phpt
ext/oci8/tests/lob_043.phpt
ext/oci8/tests/pecl_bug10194.phpt
ext/oci8/tests/pecl_bug10194_blob.phpt
ext/oci8/tests/pecl_bug10194_blob_64.phpt

index 2b62267c7396128b15bdbb6a50d3b986ae3ec431..d430474fab652f75a1fff039049105f86ad152b6 100644 (file)
@@ -4,7 +4,7 @@ Bug #42496 (LOB fetch leaks cursors, eventually failing with ORA-1000 maximum op
 <?php
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?> 
 --FILE--
 <?php
index 195c00b7e73e786191d94c7f0ba69004b2fde907..71854f3d46abf875833b5fcf58c8723ef1cf52bd 100644 (file)
@@ -4,7 +4,7 @@ Bug #42496 (LOB fetch leaks cursors, eventually failing with ORA-1000 maximum op
 <?php
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?> 
 --FILE--
 <?php
index 600fb047bf8016591ff06668b246e8b8c9c3108c..8c57fabeeff4ab34a8b7293f97a5c1212c1a00d4 100644 (file)
@@ -4,7 +4,7 @@ Bug #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory)
 <?php 
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 if (preg_match('/^1[01]\./', oci_client_version()) != 1) {
     die("skip expected output only valid with Oracle 10g or greater version of client");
 }
index 932a863d7a1567edf05e3b04cf922c7ac49a5c4d..d4201257c43bd5d6bf946812a1f80ad72d1a9335 100644 (file)
@@ -4,7 +4,7 @@ Bug #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory)
 <?php
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 if (preg_match('/Unknown/', oci_client_version()) != 1) {
     die("skip expected output only valid with Oracle 9gR2 clients");
 }
index aa4f2bb8e7fe4a32a9fe36cc47faf4baef922801..d441715616d8bf1ab4516dd2732512756bbe77ab 100644 (file)
@@ -4,7 +4,7 @@ Bug #44113 (New collection creation can fail with OCI-22303)
 <?php 
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?>
 --FILE--
 <?php
index b1a22858a862609b4ba3ae86aa6d8f2644656301..d15b7a38de83792ea85f9978759a6c6041dd03ba 100644 (file)
@@ -4,10 +4,10 @@ Set and get of connection attributes with errors.
 <?php
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 
 if (strcasecmp($user, "system") && strcasecmp($user, "sys")) die("skip needs to be run as a DBA user");
 if ($test_drcp) die("skip output might vary with DRCP");
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
 
 if (preg_match('/Release (11\.2|12)\./', oci_server_version($c), $matches) !== 1) {
     // Bug fixed in 11.2 prevents client_info being rest
index 4c07e636e3859b45bd1ce3a49d531bb2b311cb09..0f03c3a65fab873f030a2c531c356ff968edd9e5 100644 (file)
@@ -9,10 +9,6 @@
  * greater, and $dbase should be set to the tnsnames.ora entry
  * corresponding to the POOLED server instance or an Easy Connect
  * string like hostname:port/service_name:POOLED
- *
- * Set $stress_test to TRUE if you want to run some longer/slower/more
- * memory intensive tests.     External configuration such as increasing
- * the timeout of run-tests.php may also be needed.
  */
 
 if (file_exists(dirname(__FILE__)."/details_local.inc")) {
@@ -23,23 +19,16 @@ if (file_exists(dirname(__FILE__)."/details_local.inc")) {
                $password       = getenv('PHP_OCI8_TEST_PASS');   // Password for $user
                $dbase          = getenv('PHP_OCI8_TEST_DB');     // Database connection string
                $test_drcp      = getenv('PHP_OCI8_TEST_DRCP');
-               $stress_test = getenv('PHP_OCI8_STRESS_TEST');
                if (false !== $test_drcp && 0 == strcasecmp($test_drcp,'TRUE')) {
                        $test_drcp = TRUE;
                } else {
                        $test_drcp = FALSE;
                }
-               if (false !== $stress_test && 0 == strcasecmp($stress_test,'TRUE')) {
-                       $stress_test = TRUE;
-               } else {
-                       $stress_test = FALSE;
-               }
        } else {
                $user                                           = "system";
                $password                                       = "oracle";
                $dbase                                          = "localhost/XE";
                $test_drcp                                      = FALSE;
-               $stress_test                            = FALSE;
        }
        
        /*
index 12eab61a6a9eacfaae97d0f48022d77f6c54bf72..48f21f440d2738de71506f08f8a92064017f3509 100644 (file)
@@ -4,7 +4,7 @@ Exercise error code for SUCCESS_WITH_INFO
 <?php 
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?>
 --FILE--
 <?php
index 993198c4de3dab4c55bfef8a4ed5e1e246e1cb97..37f8f3834d8039efc7f6b946ef49d3caa7daabe8 100644 (file)
@@ -5,7 +5,7 @@ Test External Authentication errors with oci_connect
 if (!extension_loaded('oci8')) die ("skip no oci8 extension");
 if (substr(PHP_OS, 0, 3) == 'WIN') die("skip feature not available on Windows platforms");
 require(dirname(__FILE__).'/details.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?>
 --INI--
 oci8.privileged_connect=1
index d3bee0bfc334a6965746b7afe1004cf33ab6761f..f3b517f730af44268aec445602209cb4f9d05031 100644 (file)
@@ -3,9 +3,8 @@ Test External Authentication errors with oci_new_connect
 --SKIPIF--
 <?php
 if (!extension_loaded('oci8')) die ("skip no oci8 extension");
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 if (substr(PHP_OS, 0, 3) == 'WIN') die("skip feature not available on Windows platforms");
-require(dirname(__FILE__).'/details.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
 ?>
 --INI--
 oci8.privileged_connect=1
index e159c50f90dfa4b52099939f679cf30fb5ff5dab..e6685eb1769bae3c43b6e7f0bf79663f055988d8 100644 (file)
@@ -3,9 +3,8 @@ Test External Authentication errors with oci_pconnect
 --SKIPIF--
 <?php
 if (!extension_loaded('oci8')) die ("skip no oci8 extension");
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 if (substr(PHP_OS, 0, 3) == 'WIN') die("skip feature not available on Windows platforms");
-require(dirname(__FILE__).'/details.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
 ?>
 --INI--
 oci8.privileged_connect=1
index ade79a200c60e6fd1bcf853ae73856ac77b2e5cd..4cd159510b2505c2aaca552e4bf9aa41e04c2f4d 100644 (file)
@@ -4,7 +4,7 @@ Bug #49560 (LOB resource destructor and refcount test)
 <?php
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Slow test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?>
 --FILE--
 <?php
index 6a9044b1a0ddfce1107bec10440cb6934540695c..9947e15dbcf8e52268f5eee106f98df61e28959f 100644 (file)
@@ -4,7 +4,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
 <?php
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
-if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?> 
 --INI--
 memory_limit=10M
index 75632ce47334d6f85ea4fd5b246386f2880c3b6a..faf87ab3c16018255bd5a994cc314aab79c52e5d 100644 (file)
@@ -5,7 +5,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
 require(dirname(__FILE__).'/skipif.inc');
 if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
-if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 ?> 
 --INI--
 memory_limit=3M
index da7ec592fc63c24ef07a60b16005954fa49ad796..45788a41b430dae18b83a37a9de6d3d173ed06bd 100644 (file)
@@ -4,8 +4,8 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
 <?php 
 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on thes
 require(dirname(__FILE__).'/skipif.inc');
+if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
-if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
 ?>
 --INI--
 memory_limit=6M