tmf: Fix TmfTimestampFormat Javadoc location in custom parser wizards.
[deliverable/tracecompass.git] / org.eclipse.tracecompass.ctf.core.tests / traces / get-traces.xml
CommitLineData
09e00e4a 1<?xml version="1.0" encoding="UTF-8" ?>
61dfcb35
AM
2<!--
3 Copyright (C) 2013, Red Hat, Inc. and others
4
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
9-->
10
09e00e4a
AM
11<project name="Extract Traces" default="main" >
12<target name="main">
145d670f
MAL
13 <antcall>
14 <target name="checkAnyTraceExists"/>
15 <target name="verifyChecksum"/>
16 <target name="deleteFailedCheckSumTraces"/>
17 </antcall>
dcea0749 18 <antcall target="downloadTraceFiles"/>
95cacc20 19 <exec executable = "git" failifexecutionfails="false" timeout="20000">
4311ac8b
MAL
20 <arg value = "clone"/>
21 <arg value = "https://github.com/efficios/ctf-testsuite.git"/>
22 </exec>
23 <condition property="testSuiteExists">
24 <and>
25 <available file="ctf-testsuite" type="dir"/>
26 </and>
27 </condition>
28 <antcall target="pullTestSuite"/>
09e00e4a
AM
29 <condition property="tracesExist">
30 <and>
31 <available file="sample-ctf-trace-20120412.tar.bz2"/>
32 <available file="trace2.tar.bz2"/>
9824473b 33 <available file="kernel_vm.tar.bz2" />
e73a4ba5 34 <available file="synctraces.tar.gz" />
ef3a9bfd 35 <available file="django-benchmark.tar.gz" />
45f672d6 36 <available file="hello-lost.tar.bz2" />
6e4358bd 37 <available file="cyg-profile.tar.bz2" />
9ab4ca26 38 <available file="funky_trace.tar.bz2" />
5002d6c4 39 <available file="bug446190.tar.bz2" />
de405a2e 40 <available file="flipping-endianness.tar.bz2" />
09e00e4a
AM
41 </and>
42 </condition>
43 <antcall target="extractTraces"/>
44</target>
45
145d670f
MAL
46<target name="checkAnyTraceExists">
47 <pathconvert property="anyTraceExists" setonempty="false" pathsep=" ">
48 <path>
49 <fileset dir="." includes="*.tar.bz2" />
50 <fileset dir="." includes="*.tar.gz" />
51 <fileset dir="." includes="*.zip" />
52 </path>
53 </pathconvert>
54</target>
55
56<target name="verifyChecksum">
57 <echo message="Verifying: ${anyTraceExists}"/>
58 <condition property="failedCheckSum">
59 <and>
60 <isset property="anyTraceExists"/>
61 <not>
62 <and>
63 <checksum>
64 <fileset dir="." includes="*.tar.bz2" />
65 <fileset dir="." includes="*.tar.gz" />
66 <fileset dir="." includes="*.zip" />
67 </checksum>
68 </and>
69 </not>
70 </and>
71 </condition>
72</target>
73
74
dcea0749
MAL
75<target name="deleteFailedCheckSumTraces" if="failedCheckSum">
76 <echo message="Some traces have failed the checksum tests. Deleting traces."/>
77 <delete verbose="true">
78 <fileset dir="." includes="*.tar.bz2" />
79 <fileset dir="." includes="*.tar.gz" />
80 <fileset dir="." includes="*.zip" />
81 </delete>
82</target>
83
145d670f 84<target name="warnFailedCheckSum" if="failedCheckSum">
dcea0749
MAL
85 <echo message="WARNING: Some downloaded traces failed the checkum."/>
86</target>
87
88<target name="downloadTraceFiles">
89 <echo message="Attempting to download test traces"/>
5fef1c2b
AM
90 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="sample-ctf-trace-20120412.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/sample-ctf-trace-20120412.tar.bz2"/>
91 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="trace2.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/trace2.tar.bz2"/>
92 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="kernel_vm.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/kernel_vm.tar.bz2" />
93 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="synctraces.tar.gz" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/synctraces.tar.gz" />
94 <get ignoreerrors="true" maxtime="200" skipexisting="true" dest="django-benchmark.tar.gz" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/django-benchmark.tar.gz" />
95 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="hello-lost.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/hello-lost.tar.bz2" />
96 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="cyg-profile.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/cyg-profile.tar.bz2" />
97 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="funky_trace.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/funky_trace.tar.bz2" />
98 <get ignoreerrors="true" maxtime="200" skipexisting="true" dest="testtraceExp.zip" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/testtraceExp.zip" />
5002d6c4 99 <get ignoreerrors="true" maxtime="200" skipexisting="true" dest="bug446190.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/bug446190.tar.bz2" />
de405a2e 100 <get ignoreerrors="true" maxtime="200" skipexisting="true" dest="flipping-endianness.tar.bz2" src="http://archive.eclipse.org/tracecompass/test-traces/ctf/flipping-endianness.tar.bz2" />
dcea0749
MAL
101</target>
102
4311ac8b 103<target name="pullTestSuite" if="testSuiteExists">
95cacc20 104 <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
4311ac8b
MAL
105 <arg value = "pull"/>
106 </exec>
107</target>
108
09e00e4a 109<target name="extractTraces" if="tracesExist">
145d670f
MAL
110 <antcall>
111 <target name="checkAnyTraceExists"/>
112 <target name="verifyChecksum"/>
113 <target name="warnFailedCheckSum"/>
114 </antcall>
09e00e4a
AM
115 <bunzip2 src="sample-ctf-trace-20120412.tar.bz2"/>
116 <bunzip2 src="trace2.tar.bz2"/>
9824473b 117 <bunzip2 src="kernel_vm.tar.bz2" />
137828da 118 <gunzip src="synctraces.tar.gz" />
ef3a9bfd 119 <gunzip src="django-benchmark.tar.gz" />
45f672d6 120 <bunzip2 src="hello-lost.tar.bz2" />
6e4358bd 121 <bunzip2 src="cyg-profile.tar.bz2" />
9ab4ca26 122 <bunzip2 src="funky_trace.tar.bz2" />
5002d6c4 123 <bunzip2 src="bug446190.tar.bz2"/>
de405a2e 124 <bunzip2 src="flipping-endianness.tar.bz2"/>
43d15218 125 <unzip src="testtraceExp.zip" dest="./exp" />
6e4358bd 126
09e00e4a
AM
127 <untar src="sample-ctf-trace-20120412.tar" dest="." />
128 <untar src="trace2.tar" dest="." />
9824473b 129 <untar src="kernel_vm.tar" dest="." />
137828da 130 <untar src="synctraces.tar" dest="." />
ef3a9bfd 131 <untar src="django-benchmark.tar" dest="." />
45f672d6 132 <untar src="hello-lost.tar" dest="." />
6e4358bd 133 <untar src="cyg-profile.tar" dest="." />
9ab4ca26 134 <untar src="funky_trace.tar" dest="." />
5002d6c4 135 <untar src="bug446190.tar" dest="." />
de405a2e 136 <untar src="flipping-endianness.tar" dest="." />
137828da 137
09e00e4a
AM
138 <echo message="Traces extracted successfully"/>
139</target>
140</project>
This page took 0.0503 seconds and 5 git commands to generate.