Re: Re: Parallel run-tests
| From: | Olivier Doucet | Date: | Thu, 17 May 2012 18:04:51 +0000 |
| Subject: | Re: Re: Parallel run-tests | ||
| References: | 1 2 3 | Groups: | php.internals php.qa |
| Request: | Send a blank email to internals+get-60604@lists.php.net to get a copy of this message | ||
Hi,
>> Any chance you could write up the steps you took to test this - or point
>> me in the right direction so I can try myself?
Here is a quick setup that use your system php binary. It was written
live, may have some glitches but gives you an idea :
cd /usr/src
git clone git://git.php.net/phpruntests.git
wget "http://fr2.php.net/get/php-5.3.9.tar.bz2/from/this/mirror"
tar xf php-5.3.9.tar.bz2
# you need pcntl extension
echo "Sequential new phpruntests"
php run-tests.php -p /usr/bin/php /usr/src/php-5.3.9/tests
echo "parallel new phpruntests"
#replace THREADCOUNT by number of cores
php run-tests.php -z THREADCOUNT -p /usr/bin/php /usr/src/php-5.3.9/tests
echo "old run test"
cd /tmp/php-5.3.9
TEST_PHP_EXECUTABLE=/usr/bin/php php tests/
Olivier