| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| Copyright (C) 2013, Red Hat, Inc. and others |
| |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| --> |
| <!-- |
| Most traces are taken from the Wireshark website and are available under the GNU General Public License. |
| http://wiki.wireshark.org/SampleCaptures |
| --> |
| |
| <project name="Extract Traces" default="main" > |
| |
| <target name="main"> |
| <echo message="Attempting to download test traces"/> |
| <get ignoreerrors="true" maxtime="20" dest="Short_LittleEndian.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/1/18/Short_LittleEndian.pcap.zip" /> |
| <get ignoreerrors="true" maxtime="20" dest="Short_BigEndian.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/2/25/Short_BigEndian.pcap.zip" /> |
| <get ignoreerrors="true" maxtime="20" dest="MostlyUDP.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/6/64/MostlyUDP.pcap.zip" /> |
| <get ignoreerrors="true" maxtime="20" dest="MostlyTCP.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/8/8d/MostlyTCP.pcap.zip" /> |
| <get ignoreerrors="true" maxtime="20" dest="EmptyPcap.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/c/c1/EmptyPcap.pcap.zip" /> |
| <get ignoreerrors="true" maxtime="20" dest="BadPcapFile.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/5/5e/BadPcapFile.pcap.zip" /> |
| <get ignoreerrors="true" maxtime="60" dest="BenchmarkTrace.pcap.zip" skipexisting="true" src="http://wiki.eclipse.org/images/1/12/BenchmarkTrace.pcap.zip" /> |
| <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"/> |
| <condition property="testSuiteExists"> |
| <and> |
| <available file="pcap-testsuite" type="dir"/> |
| </and> |
| </condition> |
| <condition property="tracesExist"> |
| <and> |
| <available file="Short_LittleEndian.pcap.zip"/> |
| <available file="Short_BigEndian.pcap.zip"/> |
| <available file="MostlyUDP.pcap.zip"/> |
| <available file="MostlyTCP.pcap.zip"/> |
| <available file="EmptyPcap.pcap.zip"/> |
| <available file="BadPcapFile.pcap.zip"/> |
| <available file="BenchmarkTrace.pcap.zip"/> |
| <available file="sample-ctf-trace-20120412.tar.bz2"/> |
| </and> |
| </condition> |
| <antcall target="extractTraces"/> |
| </target> |
| |
| <target name="extractTraces" if="tracesExist"> |
| <unzip src="Short_LittleEndian.pcap.zip" dest="." /> |
| <unzip src="Short_BigEndian.pcap.zip" dest="." /> |
| <unzip src="MostlyUDP.pcap.zip" dest="." /> |
| <unzip src="MostlyTCP.pcap.zip" dest="." /> |
| <unzip src="EmptyPcap.pcap.zip" dest="." /> |
| <unzip src="BadPcapFile.pcap.zip" dest="." /> |
| <unzip src="BenchmarkTrace.pcap.zip" dest="." /> |
| <bunzip2 src="sample-ctf-trace-20120412.tar.bz2"/> |
| <untar src="sample-ctf-trace-20120412.tar" dest="." /> |
| <echo message="Traces extracted successfully"/> |
| </target> |
| </project> |