Re: PEAR 1.3b6

From: Date: Thu, 29 Jan 2004 07:16:42 +0000
Subject: Re: PEAR 1.3b6
References: 1 2 3 4  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-422@lists.php.net to get a copy of this message
Hi Klaus, Could you send one of the .diff files to my email? Also, I don't think you have all the .phpt files quite right - there should be at least twice as many. Try a fresh checkout of php-src/pear/tests - HEAD, not PHP_4_3. I have not merged in any of the tests from HEAD. I also have never run them in linux, perhaps there are linebreak issues? My last test with PHP 5 found that all of the tests passed. The main thing I can see is that putenv() doesn't seem to be putting the env. Not sure why. Greg Klaus Guenther wrote:
Hi Pierre, Pierre-Alain Joye <paj@pearfr.org> wrote:
Follow the instructions posted by Greg on the QA list. The subject was "running test cases for PEAR core". Use news.php.net if you missed this thread.
Here: http://news.php.net/article.php?group=php.pear.qa&article=249 By the way, I did look at it. And did follow it. Below are the details. I also tried it with php5. There it ran all the tests, but all failed. So... I went ahead and checked out php-src HEAD, and it didn't really work (with php5) so I copied the the tests (which are _much_ more extensive than those in the PHP_4_3 branch) and ran them under php4. The results are attached. If you can tell me what's going on, I'd appreciate it. As an aside, the phpt unit tests for various packages (DB, tidy, etc.) run without a hitch. Klaus ##### PHP_4_3 branch results ##### # set |grep PHP PHP_PEAR_RUNTESTS=1 TEST_PHP_DETAILED=1 TEST_PHP_EXECUTABLE=/usr/bin/php TEST_PHP_SRCDIR=/root/dev/php-src # php -q myruntests.php pear/tests/* <pre> =====================================================================
CWD         : /root/dev/php-src
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 4.3.4 ZEND_VERSION: 1.3.0
PHP_OS      : Linux - Linux 2.4.20 #1 SMP Sun Dec 1 21:25:43 CET 2002 i686
INI actual : /etc/php.ini More .INIs : Extra dirs : ===================================================================== Running selected tests. ================= TEST /root/dev/php-src/pear/tests/pear1.phpt SKIP PEAR constructor/destructor test [pear/tests/pear1.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_autoloader.phpt SKIP PEAR_Autoloader [pear/tests/pear_autoloader.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_config.phpt SKIP PEAR_Config [pear/tests/pear_config.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_error.phpt SKIP PEAR_Error: basic test [pear/tests/pear_error.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_error2.phpt SKIP PEAR_Error: die mode [pear/tests/pear_error2.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_error3.phpt SKIP PEAR_Error: default error handling [pear/tests/pear_error3.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_error4.phpt SKIP PEAR_Error: expected errors [pear/tests/pear_error4.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_registry.phpt SKIP PEAR_Registry [pear/tests/pear_registry.phpt] ================= TEST /root/dev/php-src/pear/tests/pear_system.phpt SKIP System commands tests [pear/tests/pear_system.phpt] # cat myruntests.php <?php putenv('TEST_PHP_EXECUTABLE=/usr/bin/php'); putenv('TEST_PHP_DETAILED=1'); chdir('/root/dev/php-src'); if (isset($_SERVER['PHP_SELF'])) {
     echo '<pre>';
} if (isset($_GET['testfile'])) {
     $argv = array();
     $argv[1] = $_GET['testfile'];
     $argc = 2;
} putenv('PHP_PEAR_RUNTESTS=1'); include '/root/dev/php-src/run-tests.php'; ?>


« previous php.pear.qa (#422) next »