<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <ctfTestSuiteCommit>0f8beba86ae551f42adeb81d1bfddd5645f31013</ctfTestSuiteCommit>
+ </properties>
+
<!-- Do not download the test traces if "maven.test.skip" is set -->
<profiles>
<profile>
<phase>pre-integration-test</phase>
<configuration>
<target>
+ <property name="ctf-test-suite-commit" value="${ctfTestSuiteCommit}"/>
<ant antfile="get-traces.xml" dir="traces" />
</target>
</configuration>
<phase>clean</phase>
<configuration>
<filesets>
+ <fileset><directory>traces/ctf-testsuite</directory></fileset>
<fileset><directory>traces/synctraces</directory></fileset>
</filesets>
</configuration>
<target name="deleteFailedCheckSumTraces"/>
</antcall>
<antcall target="downloadTraceFiles"/>
+ <exec executable = "git" failifexecutionfails="false" timeout="20000">
+ <arg value = "clone"/>
+ <arg value = "https://github.com/efficios/ctf-testsuite.git"/>
+ </exec>
+ <condition property="testSuiteExists">
+ <and>
+ <available file="ctf-testsuite" type="dir"/>
+ </and>
+ </condition>
+ <antcall target="pullTestSuite"/>
<condition property="tracesExist">
<and>
<available file="synctraces.tar.gz" />
<get ignoreerrors="true" maxtime="60" skipexisting="true" dest="synctraces.tar.gz" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/synctraces.tar.gz" />
</target>
+<target name="pullTestSuite" if="testSuiteExists">
+ <!-- Update the local 'master' branch -->
+ <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
+ <arg value = "checkout"/>
+ <arg value = "master"/>
+ </exec>
+ <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
+ <arg value = "pull"/>
+ </exec>
+
+ <!-- Checkout the commit requested by the current build -->
+ <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
+ <arg value = "checkout"/>
+ <arg value = "${ctf-test-suite-commit}"/>
+ </exec>
+</target>
+
<target name="extractTraces" if="tracesExist">
<antcall>
<target name="checkAnyTraceExists"/>