Re: run-tests.php and dynamic extension dependencies

From: Date: Mon, 28 Nov 2011 15:04:52 +0000
Subject: Re: run-tests.php and dynamic extension dependencies
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-56652@lists.php.net to get a copy of this message
2011/11/28 Johannes Schlüter <johannes@schlueters.de> > On Mon, 2011-11-28 at 15:18 +0100, Ferenc Kovacs wrote: > > + foreach ($extensions as $req_ext) { > > + $loaded = $php -n -r 'echo (int) > > extension_loaded("$req_ext");'; > > + if ($loaded == '0') { > > This should use the tmp-php.ini as that might already load the required > extension if it was built in the same built. A configure line like > > ./configure --enable-igbinary=shared --enable-new-fancy-extension=shared > > should add both to the tmp-php.ini. > uhm, based on the code: http://svn.php.net/viewvc/php/php-src/trunk/Makefile.global?view=markup#l99 http://svn.php.net/viewvc/php/php-src/trunk/Makefile.global?view=markup#l86 the extension lines will be stripped/omitted from the tmp-php.ini > > I'm also not sure if we really want to cover all these cases in extra > sections, the user can do > > run-tests.php -d extension=/path/to/extname.so > yeah, but we advertise make test as the official/endorsed way to run the test suite, so that should work. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#56652) next »