btf: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / traces / get-traces.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
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
11 <project name="Extract Traces" default="main" >
12 <target name="main">
13 <antcall>
14 <target name="checkAnyTraceExists"/>
15 <target name="verifyChecksum"/>
16 <target name="deleteFailedCheckSumTraces"/>
17 </antcall>
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"/>
22 </exec>
23 <condition property="testSuiteExists">
24 <and>
25 <available file="ctf-testsuite" type="dir"/>
26 </and>
27 </condition>
28 <antcall target="pullTestSuite"/>
29 <condition property="tracesExist">
30 <and>
31 <available file="sample-ctf-trace-20120412.tar.bz2"/>
32 <available file="trace2.tar.bz2"/>
33 <available file="kernel_vm.tar.bz2" />
34 <available file="synctraces.tar.gz" />
35 <available file="django-benchmark.tar.gz" />
36 <available file="hello-lost.tar.bz2" />
37 <available file="cyg-profile.tar.bz2" />
38 <available file="funky_trace.tar.bz2" />
39 </and>
40 </condition>
41 <antcall target="extractTraces"/>
42 </target>
43
44 <target name="checkAnyTraceExists">
45 <pathconvert property="anyTraceExists" setonempty="false" pathsep=" ">
46 <path>
47 <fileset dir="." includes="*.tar.bz2" />
48 <fileset dir="." includes="*.tar.gz" />
49 <fileset dir="." includes="*.zip" />
50 </path>
51 </pathconvert>
52 </target>
53
54 <target name="verifyChecksum">
55 <echo message="Verifying: ${anyTraceExists}"/>
56 <condition property="failedCheckSum">
57 <and>
58 <isset property="anyTraceExists"/>
59 <not>
60 <and>
61 <checksum>
62 <fileset dir="." includes="*.tar.bz2" />
63 <fileset dir="." includes="*.tar.gz" />
64 <fileset dir="." includes="*.zip" />
65 </checksum>
66 </and>
67 </not>
68 </and>
69 </condition>
70 </target>
71
72
73 <target name="deleteFailedCheckSumTraces" if="failedCheckSum">
74 <echo message="Some traces have failed the checksum tests. Deleting traces."/>
75 <delete verbose="true">
76 <fileset dir="." includes="*.tar.bz2" />
77 <fileset dir="." includes="*.tar.gz" />
78 <fileset dir="." includes="*.zip" />
79 </delete>
80 </target>
81
82 <target name="warnFailedCheckSum" if="failedCheckSum">
83 <echo message="WARNING: Some downloaded traces failed the checkum."/>
84 </target>
85
86 <target name="downloadTraceFiles">
87 <echo message="Attempting to download test traces"/>
88 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="sample-ctf-trace-20120412.tar.bz2" src="http://lttng.org/files/samples/sample-ctf-trace-20120412.tar.bz2"/>
89 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="trace2.tar.bz2" src="http://www.dorsal.polymtl.ca/~alexmont/data/trace2.tar.bz2"/>
90 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="kernel_vm.tar.bz2" src="http://www.dorsal.polymtl.ca/~alexmont/data/kernel_vm.tar.bz2" />
91 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="synctraces.tar.gz" src="http://www.dorsal.polymtl.ca/~gbastien/traces/synctraces.tar.gz" />
92 <get ignoreerrors="true" maxtime="200" skipexisting="true" dest="django-benchmark.tar.gz" src="http://www.dorsal.polymtl.ca/~gbastien/traces/django-benchmark.tgz" />
93 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="hello-lost.tar.bz2" src="http://www.dorsal.polymtl.ca/~alexmont/data/hello-lost.tar.bz2" />
94 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="cyg-profile.tar.bz2" src="http://www.dorsal.polymtl.ca/~alexmont/data/cyg-profile.tar.bz2" />
95 <get ignoreerrors="true" maxtime="60" skipexisting="true" dest="funky_trace.tar.bz2" src="http://www.dorsal.polymtl.ca/~alexmont/data/funky_trace.tar.bz2" />
96 <get ignoreerrors="true" maxtime="200" skipexisting="true" dest="testtraceExp.zip" src="http://secretaire.dorsal.polymtl.ca/~mattkhouzam/testTrace-200Overlap.zip" />
97 </target>
98
99 <target name="pullTestSuite" if="testSuiteExists">
100 <exec executable = "git" failifexecutionfails="false" dir="ctf-testsuite" timeout="20000">
101 <arg value = "pull"/>
102 </exec>
103 </target>
104
105 <target name="extractTraces" if="tracesExist">
106 <antcall>
107 <target name="checkAnyTraceExists"/>
108 <target name="verifyChecksum"/>
109 <target name="warnFailedCheckSum"/>
110 </antcall>
111 <bunzip2 src="sample-ctf-trace-20120412.tar.bz2"/>
112 <bunzip2 src="trace2.tar.bz2"/>
113 <bunzip2 src="kernel_vm.tar.bz2" />
114 <gunzip src="synctraces.tar.gz" />
115 <gunzip src="django-benchmark.tar.gz" />
116 <bunzip2 src="hello-lost.tar.bz2" />
117 <bunzip2 src="cyg-profile.tar.bz2" />
118 <bunzip2 src="funky_trace.tar.bz2" />
119 <unzip src="testtraceExp.zip" dest="./exp" />
120
121 <untar src="sample-ctf-trace-20120412.tar" dest="." />
122 <untar src="trace2.tar" dest="." />
123 <untar src="kernel_vm.tar" dest="." />
124 <untar src="synctraces.tar" dest="." />
125 <untar src="django-benchmark.tar" dest="." />
126 <untar src="hello-lost.tar" dest="." />
127 <untar src="cyg-profile.tar" dest="." />
128 <untar src="funky_trace.tar" dest="." />
129
130 <echo message="Traces extracted successfully"/>
131 </target>
132 </project>
This page took 0.034852 seconds and 5 git commands to generate.