Re: PEAR run-tests (need help)

From: Date: Thu, 08 Jun 2006 06:33:07 +0000
Subject: Re: PEAR run-tests (need help)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42855@lists.php.net to get a copy of this message
After many try, to run-tests of PEAR_PackageFileManager, i'm still in trouble : i need help . 1. i've read the README.CONTRIBUTING file [1], paragraph 2. WRITING REGRESSION TESTS 2. i've search and don"t find anything on official PEAR docs 3. i've try to put a good copy of php.ini with a fine include_path related to my configuration 4. Last one, i've also tried the command pear -c pear.ini run-tests -i " -d include_path=.;e:/wamp/php4/pear" -p PEAR_PackageFileManager All 91 tests were failed and gave me same results ---- EXPECTED OUTPUT tests done ---- ACTUAL OUTPUT Fatal error: Cannot redeclare class config in e:\wamp\php4\pear\Config.php on line 43 ---- FAILED i suppose that path was wrong and can't choose between PEAR::Config package and PEAR/Config.php core file. But when i try pear -c pear.ini run-tests -i " -d include_path=.;e:/wamp/php4/pear" -p Config With PEAR::Config 1.10.6 it gave me Using INI settings: " -d include_path=.;e:/wamp/php4/pear" Running 9 tests PASS test for bug 2742[pear\tests\Config\test\bug2742.phpt] PASS bug 2780 regression[pear\tests\Config\test\bug2780.phpt] FAIL test for bug 3051[pear\tests\Config\test\bug3051.phpt] PASS regression test for bug #3137[pear\tests\Config\test\bug3137.phpt] PASS bug 3298 regression test[pear\tests\Config\test\bug3298.phpt] PASS regression test for bug #3398[pear\tests\Config\test\bug3398.phpt] PASS regression test for bug #3590[pear\tests\Config\test\bug3590.phpt] PASS regression test for bug #3590[pear\tests\Config\test\bug4623.phpt] PASS regression test for bug #6441[pear\tests\Config\test\bug6441.phpt] wrote log to "E:\wamp\php4\run-tests.log" TOTAL TIME: 00:04 8 PASSED TESTS 0 SKIPPED TESTS 1 FAILED TESTS: E:\wamp\php4\pear\tests\Config\test\bug3051.phpt for failed test, result (log) is : ---- EXPECTED OUTPUT item1 item2 ---- ACTUAL OUTPUT Fatal error: Call to undefined function: getchild() in E:\wamp\php4\pear\tests\Config\test\bug3051.php on line 8 ---- FAILED If someone may help, he will be welcome !!! Laurent [1] http://cvs.php.net/viewcvs.cgi/pear-core/README.CONTRIBUTING?view=markup&rev=1.1 Laurent Laville a écrit :
While i tried to run-tests for PEAR_PackageFileManager i was sad to discover that all tests were failed. * My first think was : i did something wrong ! So i uninstall my current version (1.5.3 not yet public) and install the previous one (1.5.2) I run again the tests with command : pear -c pear.ini run-tests -p PEAR_PackageFileManager and once again i got all tests failed. * Then i decided to run it on another package installed (PHP_Compat), and on surprise, all tests failed again. * I decided to investigate, and i found effectivly that my include_path was wrong (include_path='.;c:\php4\pear'). YES but why ? pear -c pear.ini config-show gave me ...
PEAR executables directory     bin_dir          E:\wamp\php4
... and into this directory i have a php.ini with the right include_path include_path = ".;e:\wamp\php4\pear" but when i run tests it used PHP cli version which is located into PHP 4.4.2 there -->
PHP CLI/CGI binary             php_bin          E:\wamp\php4\cli\php.exe
Where no php.ini is found. To solve my problem and run tests as expected i've copied E:\wamp\php4\php.ini into E:\wamp\php4\cli\ But i don't think it the right solution. Feedback are welcome Laurent PS: BTW when i run PHP_Compat package tests i got these results TOTAL TIME: 00:48 49 PASSED TESTS 34 SKIPPED TESTS 3 FAILED TESTS: E:\wamp\php4\pear\tests\PHP_Compat\tests\function\http_build_query.phpt E:\wamp\php4\pear\tests\PHP_Compat\tests\function\idate.phpt E:\wamp\php4\pear\tests\PHP_Compat\tests\function\time_sleep_until.phpt Perharps a problem in sight !


« previous php.pear.dev (#42855) next »