Re: run-tests re-write
| From: | Johannes Schlüter | Date: | Thu, 16 Apr 2009 10:22:29 +0000 |
| Subject: | Re: run-tests re-write | ||
| References: | 1 2 3 4 5 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64771@lists.php.net to get a copy of this message | ||
Hi,
On Thu, 2009-04-16 at 11:56 +0200, Stefan Priebsch wrote:
> Can you please elaborate on why these tests can't be run at the same
> time? Is this something that we can easily work around by setting up a
> database server when we start runtests, and keep it running until all
> tests end, plus making sure we use random names for test databases?
ext$ for i in mysql mysqli pdo_mysql; do grep 'CREATE TABLE test' $i/tests/*.phpt | wc -l;
done
8
78
54
so we have 8 ext/mysql, 78 ext/mysqli and 54 pdo_mysql tests trying to
create the "test" MySQL table running them at the same time means they
overwrite the table from other tests and read data from the wrong table
which will (hopefully) make the test fail.
The same goes with other resources which might be used in tests.
johannes