svn: /php/phpruntests/trunk/ build.xml
| From: | Zoe Slattery | Date: | Wed, 09 May 2012 18:57:48 +0000 |
| Subject: | svn: /php/phpruntests/trunk/ build.xml | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-69020@lists.php.net to get a copy of this message | ||
zoe Wed, 09 May 2012 18:57:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=325631
Log:
remove hard coded paths
Changed paths:
U php/phpruntests/trunk/build.xml
Modified: php/phpruntests/trunk/build.xml
===================================================================
--- php/phpruntests/trunk/build.xml 2012-05-09 16:54:16 UTC (rev 325630)
+++ php/phpruntests/trunk/build.xml 2012-05-09 18:57:48 UTC (rev 325631)
@@ -50,8 +50,10 @@
</target>
<target name="compare" description="Old/New comparison of phpt
results.">
- <fail unless="php" message="Path to PHP executable not defined, use
-Dphp=/path/to/php" />
+ <fail unless="php" message="Path to standard PHP executable not defined, use
-Dphp=/path/to/php" />
+ <fail unless="php_to_test" message="Path to test PHP source dir not defined,
use -Dphp_to_test=/path/to/php_source_dir" />
+
<delete dir="_compare" />
<mkdir dir="_compare" />
@@ -62,8 +64,8 @@
<exec command="tar xfz QATESTS.tgz" dir="/tmp/phpruntests" />
- <exec command="${php} -n /Users/zoe/Applications/PHP/php-5.4.0/run-tests.php -n -p
${php} /tmp/phpruntests/Zend /tmp/phpruntests/ext /tmp/phpruntests/sapi /tmp/phpruntests/tests >
${project.basedir}/_compare/old.out" dir="/tmp/phpruntests" passthru="true"
checkReturn="true"/>
- <exec command="${php} -n ${project.basedir}/src/run-tests.php -n -p ${php} -o csv -s
${project.basedir}/_compare/new.out /tmp/phpruntests" dir="/tmp/phpruntests"
passthru="true" checkReturn="true" />
+ <exec command="${php} -n ${php_to_test}/run-tests.php -n -p ${php_to_test}/sapi/cli/php
/tmp/phpruntests/Zend /tmp/phpruntests/ext /tmp/phpruntests/sapi /tmp/phpruntests/tests >
${project.basedir}/_compare/old.out" dir="/tmp/phpruntests" passthru="true"
checkReturn="true"/>
+ <exec command="${php} -n ${project.basedir}/src/run-tests.php -n -p
${php_to_test}/sapi/cli/php -o csv -s ${project.basedir}/_compare/new.out /tmp/phpruntests"
dir="/tmp/phpruntests" passthru="true" checkReturn="true" />
<exec command="${php} -n QA/compareNewOld.php ${project.basedir}/_compare/new.out
${project.basedir}/_compare/old.out phpruntests >
${project.basedir}/_compare/compare_new_old.out" dir="${project.basedir}"
passthru="true" checkReturn="true"/>