TestingPEAR

From PEAR Wiki

Jump to: navigation, search

[edit] Quality Assurance tools

Christian hosts continuous integration results

[edit] How to test a new PEAR release

Before releasing a new version of PEAR, we need to make sure it runs on as many systems as possible. It's pretty easy:

1. Install the new PEAR (1.7.0RC2 currently):

pear upgrade -f PEAR

2. Make sure you have the XML_RPC package:

pear upgrade XML_RPC

3. Checkout pear-core from CVS to get the tests:

cvs -d :pserver:cvsread@cvs.php.net:/repository checkout pear-core

4. Run the tests:

cd pear-core/tests && pear run-tests -r

Tell pear-qa@lists.php.net if you got failures, and if, which tests did not pass. We will come back to you in that case.

[edit] Common pitfalls

  1. Make sure that PHP is compiled with tokenizer support (--enable-tokenizer). On most systems this is default, but on Gentoo Linux for instance, you need to enable the tokenizer USE flag.
  2. For some tests the executable php-cgi is needed. In some Linux distributions this is contained in a separate package, but on for instance Gentoo Linux this has to be enabled using the cgi USE flag.
  3. If running on linux, do not run the tests as root
Personal tools