blob: e9e381f183d72cb022be240754e149c70ca8797a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="testsuite" default="" basedir=".">
<property name="BUILD_ROOT" value="./" />
<property file="local.sh"/>
<property name="build" value="${QUALIFIER}" />
<property name="junit-report-output" value="./report/${build}" />
<property name="eclipse-test-home-3.4" value="${ECLIPSE_TEST_HOME_3_4}" />
<property name="eclipse-test-home-3.3" value="${ECLIPSE_TEST_HOME_3_3}" />
<property name="jvm" value="${JAVA_HOME}/bin/java" />
<target name="all" depends="clean">
<exec executable="./build-3.4.sh" />
<exec executable="./run-tests-3.4.sh">
<arg value="run" />
</exec>
<antcall target="report" />
<exec executable="./run-tests-3.4.sh">
<arg value="performance" />
</exec>
<antcall target="report" />
<antcall target="publish" />
<exec executable="./build-3.3.sh" />
<exec executable="./run-tests-3.3.sh">
<arg value="run" />
</exec>
<antcall target="report" />
<exec executable="./run-tests-3.3.sh">
<arg value="performance" />
</exec>
<antcall target="report" />
</target>
<target name="clean">
<delete dir="${eclipse-test-home-3.3}/results" />
<delete>
<fileset dir="${eclipse-test-home-3.3}" includes="org*.xml" />
</delete>
<delete dir="${eclipse-test-home-3.3}/plugins/org.eclipse.mylyn.tests"/>
<mkdir dir="${eclipse-test-home-3.3}/results" />
<delete dir="${eclipse-test-home-3.4}/results" />
<delete>
<fileset dir="${eclipse-test-home-3.4}" includes="org*.xml" />
</delete>
<delete dir="${eclipse-test-home-3.4}/plugins/org.eclipse.mylyn.tests"/>
<mkdir dir="${eclipse-test-home-3.4}/results" />
</target>
<target name="report">
<mkdir dir="${junit-report-output}/e3.3" />
<xslt style="${eclipse-test-home-3.3}/plugins/org.eclipse.test/JUNIT.XSL" basedir="${eclipse-test-home-3.3}/results" includes="*.xml" destdir="${junit-report-output}/e3.3" />
<copy todir="${junit-report-output}/e3.3">
<fileset dir="${eclipse-test-home-3.3}/results" />
</copy>
<mkdir dir="${junit-report-output}/e3.4" />
<xslt style="${eclipse-test-home-3.4}/plugins/org.eclipse.test/JUNIT.XSL" basedir="${eclipse-test-home-3.4}/results" includes="*.xml" destdir="${junit-report-output}/e3.4" />
<copy todir="${junit-report-output}/e3.4">
<fileset dir="${eclipse-test-home-3.4}/results" />
</copy>
</target>
<target name="publish">
<java jar="test-report.jar" failonerror="true" fork="true" jvm="${jvm}">
<classpath>
<pathelement location="test-report.jar" />
<pathelement path="${java.class.path}" />
</classpath>
<arg value="-in" />
<arg value="${eclipse-test-home-3.4}/results/org.eclipse.mylyn.tests.AllTests.xml" />
<arg value="-config" />
<arg value="repository.properties" />
<arg value="-build" />
<arg value="${build}" />
</java>
</target>
</project>