]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
basic test for linktype 228
authorJason Ish <ish@unx.ca>
Fri, 24 Nov 2017 16:55:55 +0000 (10:55 -0600)
committerJason Ish <ish@unx.ca>
Mon, 27 Nov 2017 15:28:17 +0000 (09:28 -0600)
tests/linktype-228/check.sh [new file with mode: 0755]
tests/linktype-228/flow-test-01.pcap [new file with mode: 0644]

diff --git a/tests/linktype-228/check.sh b/tests/linktype-228/check.sh
new file mode 100755 (executable)
index 0000000..958b2ff
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+tcp=$(cat output/eve.json | \
+         jq -c 'select(.event_type == "stats") | .stats.decoder.tcp')
+test "${tcp}" = "7"
diff --git a/tests/linktype-228/flow-test-01.pcap b/tests/linktype-228/flow-test-01.pcap
new file mode 100644 (file)
index 0000000..88779e6
Binary files /dev/null and b/tests/linktype-228/flow-test-01.pcap differ