]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
bpf-command-line: add test for bug 3346
authorEric Leblond <eric@regit.org>
Tue, 19 Nov 2019 17:06:08 +0000 (18:06 +0100)
committerJason Ish <jason.ish@oisf.net>
Thu, 9 Jan 2020 23:03:51 +0000 (17:03 -0600)
tests/bpf-command-line/input.pcap [new symlink]
tests/bpf-command-line/test.rules [new file with mode: 0644]
tests/bpf-command-line/test.yaml [new file with mode: 0644]

diff --git a/tests/bpf-command-line/input.pcap b/tests/bpf-command-line/input.pcap
new file mode 120000 (symlink)
index 0000000..cc60ff0
--- /dev/null
@@ -0,0 +1 @@
+../base64/input.pcap
\ No newline at end of file
diff --git a/tests/bpf-command-line/test.rules b/tests/bpf-command-line/test.rules
new file mode 100644 (file)
index 0000000..54eea9f
--- /dev/null
@@ -0,0 +1 @@
+alert http any any -> any any (msg:"Example"; content:"arg"; http_uri; base64_decode:bytes 17, offset 1, relative; base64_data; content:"thisisatest"; sid:1; rev:1;)
diff --git a/tests/bpf-command-line/test.yaml b/tests/bpf-command-line/test.yaml
new file mode 100644 (file)
index 0000000..2286ae0
--- /dev/null
@@ -0,0 +1,15 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+args:
+  - -k none port 22
+
+pcap: input.pcap
+
+checks:
+  - filter:
+      count: 0
+      match:
+         event_type: alert
+         alert.signature_id: 1