1 <?xml version=
"1.0" encoding=
"UTF-8" ?>
3 Copyright (C) 2013, Red Hat, Inc. and others
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
11 <project name=
"Extract Traces" default=
"main" >
14 <target name=
"checkAnyTraceExists"/>
15 <target name=
"verifyChecksum"/>
16 <target name=
"deleteFailedCheckSumTraces"/>
18 <antcall target=
"downloadTraceFiles"/>
19 <exec executable =
"git" failifexecutionfails=
"false" timeout=
"20000">
20 <arg value =
"clone"/>
21 <arg value =
"https://github.com/efficios/ctf-testsuite.git"/>
23 <condition property=
"testSuiteExists">
25 <available file=
"ctf-testsuite" type=
"dir"/>
28 <antcall target=
"pullTestSuite"/>
29 <condition property=
"tracesExist">
31 <available file=
"synctraces.tar.gz" />
34 <antcall target=
"extractTraces"/>
37 <target name=
"checkAnyTraceExists">
38 <pathconvert property=
"anyTraceExists" setonempty=
"false" pathsep=
" ">
40 <fileset dir=
"." includes=
"*.tar.gz" />
45 <target name=
"verifyChecksum">
46 <echo message=
"Verifying: ${anyTraceExists}"/>
47 <condition property=
"failedCheckSum">
49 <isset property=
"anyTraceExists"/>
53 <fileset dir=
"." includes=
"*.tar.gz" />
62 <target name=
"deleteFailedCheckSumTraces" if=
"failedCheckSum">
63 <echo message=
"Some traces have failed the checksum tests. Deleting traces."/>
64 <delete verbose=
"true">
65 <fileset dir=
"." includes=
"*.tar.gz" />
69 <target name=
"warnFailedCheckSum" if=
"failedCheckSum">
70 <echo message=
"WARNING: Some downloaded traces failed the checkum."/>
73 <target name=
"downloadTraceFiles">
74 <echo message=
"Attempting to download test traces"/>
75 <get ignoreerrors=
"true" maxtime=
"60" skipexisting=
"true" dest=
"synctraces.tar.gz" src=
"http://archive.eclipse.org/tracecompass/test-traces/ctf/synctraces.tar.gz" />
78 <target name=
"pullTestSuite" if=
"testSuiteExists">
79 <!-- Update the local 'master' branch -->
80 <exec executable =
"git" failifexecutionfails=
"false" dir=
"ctf-testsuite" timeout=
"20000">
81 <arg value =
"checkout"/>
82 <arg value =
"master"/>
84 <exec executable =
"git" failifexecutionfails=
"false" dir=
"ctf-testsuite" timeout=
"20000">
88 <!-- Checkout the commit requested by the current build -->
89 <exec executable =
"git" failifexecutionfails=
"false" dir=
"ctf-testsuite" timeout=
"20000">
90 <arg value =
"checkout"/>
91 <arg value =
"${ctf-test-suite-commit}"/>
95 <target name=
"extractTraces" if=
"tracesExist">
97 <target name=
"checkAnyTraceExists"/>
98 <target name=
"verifyChecksum"/>
99 <target name=
"warnFailedCheckSum"/>
101 <gunzip src=
"synctraces.tar.gz" />
102 <untar src=
"synctraces.tar" dest=
"." />
104 <echo message=
"Traces extracted successfully"/>
This page took 0.047481 seconds and 5 git commands to generate.