diff --git a/tests/runmode-test/README.md b/tests/runmode-test/README.md new file mode 100644 index 000000000..0ee069b41 --- /dev/null +++ b/tests/runmode-test/README.md @@ -0,0 +1,11 @@ +# Suricata Missing Runmode Issue + +This directory contains test files and documentation for addressing the "Missing runmode" issue 5711 in Suricata. + +## Issue Description + +The issue relates to Suricata not providing adequate feedback when the runmode is missing, leading to confusion for users. + +## Related Issue + +https://redmine.openinfosecfoundation.org/issues/5711 diff --git a/tests/runmode-test/suricata.yaml b/tests/runmode-test/suricata.yaml new file mode 100644 index 000000000..6917d8538 --- /dev/null +++ b/tests/runmode-test/suricata.yaml @@ -0,0 +1,2 @@ +%YAML 1.1 +--- diff --git a/tests/runmode-test/test.yaml b/tests/runmode-test/test.yaml new file mode 100644 index 000000000..22035b24e --- /dev/null +++ b/tests/runmode-test/test.yaml @@ -0,0 +1,13 @@ +requires: + min-version: 7.0.3 + pcap: false + +exit-code: 1 + +args: + - -c suricata.yaml + +checks: + + - file: + args: "No capture mode specified as a command-line argument, specify one from the --list-runmodes" stderr