Hello, testing right away on Linux :)
I've some comments: [root@kossu php-4.3.0dev]# php run-tests.php FAIL environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable! Nice message, but I think it would be a good idea to default to the CLI if it exists, and otherwise give this message. I think it's a nice thing that as soon as PHP is compiled, users can do php run-tests.php without having to tinker with environment variables. (And it annoyed me :) After I setttled the ini file problem, I encountered this: [...(40 more extensions)...] Will test compiled extension: dba Will test compiled extension: curl Will test compiled extension: ctype Will test compiled extension: zlib ===================================================================== .... directory /dat/dev/php/php-4.3.0dev/tests/basic Cannot open file ''! [root@kossu php-4.3.0dev]# I can not dig in further right now, because I've no time. Derick On Fri, 17 May 2002, Preston L. Bannister wrote: > Updated run-tests.php to work well on Win32. > > The changes *should* work on Unix as well, and I'll do some > testing once I finish getting my newer Linux box set up :). > > Added some tricks I've found useful in writing unit tests: > > * Require a specific explicit path to the PHP executable. > * Require a php.ini file (to control the exact configuration). > * Abort the test if any requirement is not met. > * Log what exactly is being tested (version & path, etc.). > * On failure log additional detail (to a seperate file). > > Some enhancements: > > * Run basic (non-extension/PEAR) tests first. > * Added project to Win32 workspace, and made dependent on php4ts. > * Generate compiler-style error reports that Emacs/MSVC can grok. > > Put a little work into the test cases. The entire tests.log file > for Win32 is attached, with an abbreviated version below: > > ===================================================================== > TIME 2002-05-17 00:39:59 - start of test run > CWD : C:\net.php\php4-work > PHP : Debug_TS\\php-cgi.exe > PHP_SAPI : cgi > PHP_VERSION : 4.3.0-dev > PHP_OS : WINNT > INI actual : C:\net.php\php4-work\tests\php.ini > INI wanted : C:\net.php\php4-work\tests\php.ini > INI tests : C:\net.php\php4-work\Debug_TS\php.ini > ===================================================================== > Will test compiled extension: standard > Will test compiled extension: bcmath > Will test compiled extension: calendar > Will test compiled extension: ctype > Will test compiled extension: com > Will test compiled extension: ftp > Will test compiled extension: mbstring > Will test compiled extension: mysql > Will test compiled extension: odbc > Will test compiled extension: overload > Will test compiled extension: pcre > Will test compiled extension: session > Will test compiled extension: tokenizer > Will test compiled extension: xml > Will test compiled extension: wddx > ===================================================================== > [snip] > ===================================================================== > TIME 2002-05-17 00:40:23 - end of test run > TEST RESULT SUMMARY > ===================================================================== > Number of tests : 223 > Tests skipped : 70 (31.4%) > Tests failed : 22 ( 9.9%) > Tests passed : 131 (58.7%) > ===================================================================== > Skipped 24 extensions > > > --------------------------------------------------------------------------- Did I help you? http://www.jdimedia.nl/derick/link.php?url=giftlist Frequent ranting: http://www.jdimedia.nl/derick/ --------------------------------------------------------------------------- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net --------------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php