# running tests for shared extensions, compiled out of php src tree

- Thread: https://externals.io/message/6822
- Original archive: https://news-web.php.net/php.internals/6822
- Started by Pierre-Alain Joye on 2004-01-07T13:35:14+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6822 — Pierre-Alain Joye — 2004-01-07T13:35:14+00:00

URL: https://externals.io/message/6822#6822

Hello,

I think we should add some stuffs to be able to run the tests using a
shared extension, outside the php source tree.

Some changes are required in phpize and run-tests.php as well as in the
Makefile.

some quick thoughts:

- Add the run-tests.php to the top level sources tree
or
- Install run-tests.php on make install

- Test should be called using $(SAPI_CLI_PATH)
  $(top_src_dir)/run-tests.php $(top_src_dir)/tests/
  or $(libdir)/tests/run-tests.php

- A way to load the Ext, in the ini section?
  or let the authors load it again in FILE using dl?


I would like to get some feedbacks and/or comments. And if it is
possible or not to make these changes. That should help a lot QA
processes for extensions and pecl extensions (ie running them from pear
install foobar).

pierre

---

## #6823 — Hartmut Holzgraefe — 2004-01-07T14:21:39+00:00

URL: https://externals.io/message/6822#6823 · In reply to: #6822

Pierre-Alain Joye wrote:
> Some changes are required in phpize and run-tests.php as well as in the
> Makefile.
> 
> some quick thoughts:
> 
 >[...]

- make all run-tests.php settings controlable using command line options
   instead of the current mix of command line and environment settings

i had already started this some time last year but somehow never finised,
hope i can still find the modified script ...

-- 
Hartmut Holzgraefe  <hartmut@php.net
