aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/do.sh5
-rw-r--r--tests/pcap/skype.pcapbin0 -> 699646 bytes
-rw-r--r--tests/pcap/skype_no_unknown.pcapbin0 -> 526100 bytes
-rw-r--r--tests/result/quic.pcap.out2
-rw-r--r--tests/result/skype.pcap.out13
-rw-r--r--tests/result/skype_no_unknown.pcap.out11
6 files changed, 29 insertions, 2 deletions
diff --git a/tests/do.sh b/tests/do.sh
index 4f81906f7..e7d28aa9c 100755
--- a/tests/do.sh
+++ b/tests/do.sh
@@ -15,13 +15,16 @@ build_results() {
check_results() {
for f in $PCAPS; do
if [ -f result/$f.out ]; then
- $READER -q -i pcap/$f -w /tmp/reader.out
+ CMD="$READER -q -i pcap/$f -w /tmp/reader.out"
+ $CMD
NUM_DIFF=`diff result/$f.out /tmp/reader.out | wc -l`
if [ $NUM_DIFF -eq 0 ]; then
echo "$f\t OK"
else
echo "$f\t ERROR"
+ echo "$CMD"
+ diff result/$f.out /tmp/reader.out
fi
/bin/rm /tmp/reader.out
diff --git a/tests/pcap/skype.pcap b/tests/pcap/skype.pcap
new file mode 100644
index 000000000..d8c85f508
--- /dev/null
+++ b/tests/pcap/skype.pcap
Binary files differ
diff --git a/tests/pcap/skype_no_unknown.pcap b/tests/pcap/skype_no_unknown.pcap
new file mode 100644
index 000000000..5266bca6f
--- /dev/null
+++ b/tests/pcap/skype_no_unknown.pcap
Binary files differ
diff --git a/tests/result/quic.pcap.out b/tests/result/quic.pcap.out
index 283fb04d2..900864e4d 100644
--- a/tests/result/quic.pcap.out
+++ b/tests/result/quic.pcap.out
@@ -1 +1 @@
-Unknown 413 254874 1
+Quic 413 254874 1
diff --git a/tests/result/skype.pcap.out b/tests/result/skype.pcap.out
new file mode 100644
index 000000000..404442549
--- /dev/null
+++ b/tests/result/skype.pcap.out
@@ -0,0 +1,13 @@
+Unknown 409 49221 18
+DNS 8 807 4
+MDNS 8 1736 2
+NTP 2 180 1
+SSDP 101 38156 6
+ICMP 8 656 1
+IGMP 5 258 4
+SSL 20 1516 1
+DropBox 38 17948 5
+Skype 2362 501011 246
+Apple 15 2045 2
+AppleiCloud 88 20520 2
+Spotify 5 430 1
diff --git a/tests/result/skype_no_unknown.pcap.out b/tests/result/skype_no_unknown.pcap.out
new file mode 100644
index 000000000..2b6435897
--- /dev/null
+++ b/tests/result/skype_no_unknown.pcap.out
@@ -0,0 +1,11 @@
+Unknown 241 60170 16
+DNS 6 627 3
+MDNS 3 400 2
+NetBIOS 22 3106 7
+SSDP 40 14100 3
+ICMP 4 328 1
+IGMP 4 226 4
+SSL 22 1444 3
+DropBox 16 7342 5
+Skype 1637 379382 221
+Apple 84 20699 2