Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/runmode-warn-5711/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Description

Test that a warning is given in case a cmdline option was provided but no runmode was specified.

### Ticket

https://redmine.openinfosecfoundation.org/issues/5711
1 change: 1 addition & 0 deletions tests/runmode-warn-5711/blah.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Nothing to see here. Just a placeholder.
13 changes: 13 additions & 0 deletions tests/runmode-warn-5711/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 9

pcap: false
command: |
${SRCDIR}/src/suricata -S ${TEST_DIR}/blah.rules

exit-code: 1

checks:
- shell:
args: grep "Please specify a runmode or capture option. Use --list-runmodes to see available runmodes." stdout | wc -l
expect: 1
Loading