howdy!

if i try to run php run-tests.sh --clean it demands

ERROR: Unable to automatically determine the path to the PHP interpreter. Please supply the --php command line argument.

.

if i run php run-tests.sh --php /usr/bin/php --clean it works great!

if i run php run-tests.sh --php /usr/bin/php --file sites/all/modules/example/example.test i get the same error as before. it doesn't seem to matter where i place the --php parameter, or whether i'm using --file or --class.

Comments

daffie’s picture

I am also unable to run run-tests.sh.

ERROR: Unable to automatically determine the path to the PHP interpreter. Please supply the --php command line argument.

If I run php run-tests.sh --php /usr/bin/php --clean

PHP Warning: require_once(/var/www/sites/all/modules/includes/bootstrap.inc): failed to open stream: No such file or directory in /var/www/sites/all/modules/simpletest/run-tests.sh on line 293
PHP Fatal error: require_once(): Failed opening required '/var/www/sites/all/modules/includes/bootstrap.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sites/all/modules/simpletest/run-tests.sh on line 293

I am using ubuntu 11.10

salvis’s picture

Failed opening required '/var/www/sites/all/modules/includes/bootstrap.inc'

bootstrap.inc is in /var/www/includes. Have you tried to run run-tests.sh from the directory three levels higher by specifying the path to it?

daffie’s picture

I solved my problem. I did not copy run-tests.sh to the scripts directory.

chipway’s picture

Hi,

i think that it works better from site root directory.

On Ubuntu 11.10, you may use :
/usr/bin/php scripts/run-tests.sh --list --php /usr/bin/php

this should display the list of all test groups, so you know it works.

twistor’s picture

Try specifying the --url parameter.

lendude’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is not supported anymore.