Re: Tests that require other modules in PECL test suites?
| From: | Calvin Buckley | Date: | Fri, 08 May 2020 20:35:09 +0000 |
| Subject: | Re: Tests that require other modules in PECL test suites? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327150@lists.php.net to get a copy of this message | ||
I've been using
make test. Setting some environment variables with
run-tests worked - after symbolically linking the dependent extension
into the build artifacts and with an ugly command line. Not complaining
though - it works now. Thanks!
On Fri, 2020-05-08 at 11:53 +0200, Christoph M. Becker wrote:
> On 07.05.2020 at 17:48, Calvin Buckley wrote:
>
> > Forgive me if this isn't the right place for it, but I'm running the
> > test suite for a PECL module, but some of the tests require SimpleXML.
> > However, the PHP on my system builds the XML modules as shared external
> > modules, and the test environment explicitly loads only the module I'm
> > testing, some tests fail. Is there a way to get PHP to include those
> > modules, or am I doomed to having to make those tests skip instead of
> > fail?
>
> If you're using run-tests.php, it should be possible to supply a
> suitable php.ini by simply placing it besides the TEST_PHP_EXECUTABLE.
>
> --
> Christoph M. Becker