Commit | Line | Data |
---|---|---|
a1d21447 VP |
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 | Most traces are taken from the Wireshark website and are available under the GNU General Public License. | |
12 | http://wiki.wireshark.org/SampleCaptures | |
13 | --> | |
14 | ||
15 | <project name="Extract Traces" default="main" > | |
16 | ||
17 | <target name="main"> | |
18 | <echo message="Attempting to download test traces"/> | |
19 | <get ignoreerrors="true" maxtime="20" dest="Short_LittleEndian.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/1/18/Short_LittleEndian.pcap.zip" /> | |
20 | <get ignoreerrors="true" maxtime="20" dest="Short_BigEndian.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/2/25/Short_BigEndian.pcap.zip" /> | |
21 | <get ignoreerrors="true" maxtime="20" dest="MostlyUDP.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/6/64/MostlyUDP.pcap.zip" /> | |
22 | <get ignoreerrors="true" maxtime="20" dest="MostlyTCP.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/8/8d/MostlyTCP.pcap.zip" /> | |
23 | <get ignoreerrors="true" maxtime="20" dest="EmptyPcap.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/c/c1/EmptyPcap.pcap.zip" /> | |
24 | <get ignoreerrors="true" maxtime="20" dest="BadPcapFile.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/5/5e/BadPcapFile.pcap.zip" /> | |
82983c92 | 25 | <get ignoreerrors="true" maxtime="60" dest="BenchmarkTrace.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/1/12/BenchmarkTrace.pcap.zip" /> |
a1d21447 VP |
26 | <get ignoreerrors="true" maxtime="20" dest="sample-ctf-trace-20120412.tar.bz2" skipexisting="true" src="http://lttng.org/files/samples/sample-ctf-trace-20120412.tar.bz2"/> |
27 | <condition property="testSuiteExists"> | |
28 | <and> | |
29 | <available file="pcap-testsuite" type="dir"/> | |
30 | </and> | |
31 | </condition> | |
32 | <condition property="tracesExist"> | |
33 | <and> | |
34 | <available file="Short_LittleEndian.pcap.zip"/> | |
35 | <available file="Short_BigEndian.pcap.zip"/> | |
36 | <available file="MostlyUDP.pcap.zip"/> | |
37 | <available file="MostlyTCP.pcap.zip"/> | |
38 | <available file="EmptyPcap.pcap.zip"/> | |
39 | <available file="BadPcapFile.pcap.zip"/> | |
82983c92 | 40 | <available file="BenchmarkTrace.pcap.zip"/> |
a1d21447 VP |
41 | <available file="sample-ctf-trace-20120412.tar.bz2"/> |
42 | </and> | |
43 | </condition> | |
44 | <antcall target="extractTraces"/> | |
45 | </target> | |
46 | ||
47 | <target name="extractTraces" if="tracesExist"> | |
48 | <unzip src="Short_LittleEndian.pcap.zip" dest="." /> | |
49 | <unzip src="Short_BigEndian.pcap.zip" dest="." /> | |
50 | <unzip src="MostlyUDP.pcap.zip" dest="." /> | |
51 | <unzip src="MostlyTCP.pcap.zip" dest="." /> | |
52 | <unzip src="EmptyPcap.pcap.zip" dest="." /> | |
53 | <unzip src="BadPcapFile.pcap.zip" dest="." /> | |
82983c92 | 54 | <unzip src="BenchmarkTrace.pcap.zip" dest="." /> |
a1d21447 VP |
55 | <bunzip2 src="sample-ctf-trace-20120412.tar.bz2"/> |
56 | <untar src="sample-ctf-trace-20120412.tar" dest="." /> | |
57 | <echo message="Traces extracted successfully"/> | |
58 | </target> | |
59 | </project> |