Skip to content

Commit

Permalink
remove hard coded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Slattery committed May 9, 2012
1 parent 772692d commit b1ddef2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
</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" />
Expand All @@ -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"/>

Expand Down

0 comments on commit b1ddef2

Please sign in to comment.