source: test/do-check-tracesets.sh @ 99425f8

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 99425f8 was 99425f8, checked in by Shane Alcock <salcock@…>, 11 years ago
  • Added a new test for an SLL trace where the Ethernet header has NOT been included in the capture
  • Check tracesets test now just checks a single trace from each set by default
  • Property mode set to 100755
File size: 3.1 KB
Line 
1#!/bin/bash
2
3PREFIX=${1:-/trace/mojo-public}
4TEST=./test-convert2
5export LD_LIBRARY_PATH=../lib/.libs:../libpacketdump/.libs
6#export LIBTRACEIO=directread
7
8# Auckland I
9
10# Auckland II
11echo Testing Auckland II
12for i in ${PREFIX}/auckland/2/*.gz; do
13        echo -n " * $i: "
14        ${TEST} legacyatm:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
15        break
16done
17
18# Auckland IV
19echo Testing Auckland IV
20for i in ${PREFIX}/auckland/4/*.gz; do
21        echo -n " * $i: "
22        ${TEST} legacyatm:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
23        break
24done
25
26# Auckland VI
27echo Testing Auckland VI
28for i in ${PREFIX}/auckland/6/*-[01].gz; do
29        echo -n " * $i: "
30        ${TEST} legacyatm:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
31        break
32done
33for i in ${PREFIX}/auckland/6/*-e[01].gz; do
34        echo -n " * $i: "
35        ${TEST} legacyeth:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
36        break
37done
38
39# Auckland VII
40echo Testing Auckland VIII
41for i in ${PREFIX}/auckland/8/*.gz; do
42        echo -n " * $i: "
43        ${TEST} erf:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
44        break
45done
46
47# Auckland IX
48echo Testing Auckland IX
49for i in ${PREFIX}/auckland/9/*.gz; do
50        echo -n " * $i: "
51        ${TEST} erf:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
52        break
53done
54
55# IPLS I
56echo Testing IPLS I
57for i in ${PREFIX}/pma/long/ipls/1/*.gz; do
58        echo -n " * $i: "
59        ${TEST} legacypos:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
60        break
61done
62
63# IPLS II
64echo Testing IPLS II
65for i in ${PREFIX}/pma/long/ipls/2/*.gz; do
66        echo -n " * $i: "
67        ${TEST} legacypos:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
68        break
69done
70
71# IPLS III
72echo Testing IPLS III
73for i in ${PREFIX}/pma/long/ipls/3/*.gz; do
74        echo -n " * $i: "
75        ${TEST} erf:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
76        break
77done
78
79# Leipzig I
80echo Testing Leipzig I
81for i in ${PREFIX}/pma/long/leip/1/*.gz; do
82        echo -n " * $i: "
83        ${TEST} legacypos:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
84        break
85done
86
87# Leipzig II
88echo Testing Leipzig II
89for i in ${PREFIX}/pma/long/leip/2/*-[01].gz; do
90        echo -n " * $i: "
91        ${TEST} legacypos:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
92        break
93done
94for i in ${PREFIX}/pma/long/leip/2/*-e.gz; do
95        echo -n " * $i: "
96        ${TEST} erf:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
97        break
98done
99
100# NZIX II
101echo Testing NZIX II
102for i in ${PREFIX}/pma/long/nzix/2/*.gz; do
103        echo -n " * $i: "
104        ${TEST} legacyeth:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
105        break
106done
107
108# SDSC I
109echo Testing SDSC I
110for i in ${PREFIX}/pma/long/sdag/1/*.gz; do
111        echo -n " * $i: "
112        ${TEST} erf:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
113        break
114done
115
116
117# Waikato I
118echo Testing Waikato I
119for i in ${PREFIX}/waikato/1/*[0-9].gz; do
120        echo -n " * $i: "
121        ${TEST} erf:$i pcapfile:/scratch/salcock/libtrace_test/convert_test.pcap && echo PASS
122        break
123done
124
125
126echo Testing complete
Note: See TracBrowser for help on using the repository browser.