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=
"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" />
41 <antcall target=
"extractTraces"/>
44 <target name=
"checkAnyTraceExists">
45 <pathconvert property=
"anyTraceExists" setonempty=
"false" pathsep=
" ">
47 <fileset dir=
"." includes=
"*.tar.bz2" />
48 <fileset dir=
"." includes=
"*.tar.gz" />
49 <fileset dir=
"." includes=
"*.zip" />
54 <target name=
"verifyChecksum">
55 <echo message=
"Verifying: ${anyTraceExists}"/>
56 <condition property=
"failedCheckSum">
58 <isset property=
"anyTraceExists"/>
62 <fileset dir=
"." includes=
"*.tar.bz2" />
63 <fileset dir=
"." includes=
"*.tar.gz" />
64 <fileset dir=
"." includes=
"*.zip" />
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" />
82 <target name=
"warnFailedCheckSum" if=
"failedCheckSum">
83 <echo message=
"WARNING: Some downloaded traces failed the checkum."/>
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" />
99 <target name=
"pullTestSuite" if=
"testSuiteExists">
100 <exec executable =
"git" failifexecutionfails=
"false" dir=
"ctf-testsuite" timeout=
"20000">
101 <arg value =
"pull"/>
105 <target name=
"extractTraces" if=
"tracesExist">
107 <target name=
"checkAnyTraceExists"/>
108 <target name=
"verifyChecksum"/>
109 <target name=
"warnFailedCheckSum"/>
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" />
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=
"." />
130 <echo message=
"Traces extracted successfully"/>
This page took 0.034594 seconds and 5 git commands to generate.