Followup PR that
- Includes the issue number in the README files
- Updated to check for symbolic instead of numeric verbose level.
- Tests displayed level with debug build
Issue: 7389
Ensure that extra `-v` switches don't reset verbose level
+
+Ticket: 7389
checks:
- shell:
- args: grep "Running with verbose level 4" suricata.log | wc -l | xargs
+ args: grep "Running with verbose level Debug" suricata.log | wc -l | xargs
expect: 1
--- /dev/null
+Test case to check level with `-vvv`
+
+Ticket: 7389
--- /dev/null
+requires:
+ min-version: 9
+
+pcap: ../bug-7389-01/input.pcap
+
+args:
+ - -vvv
+
+checks:
+ - shell:
+ args: grep "Running with verbose level Config" suricata.log | wc -l | xargs
+ expect: 1
--- /dev/null
+Ensure that Debug level is printed with a debug build
+
+Ticket: 7389
--- /dev/null
+requires:
+ min-version: 9
+ features:
+ - DEBUG
+
+pcap: ../bug-7389-01/input.pcap
+
+args:
+ - -vvvvvvvvvvv
+
+checks:
+ - shell:
+ args: grep "Running with verbose level Debug" suricata.log | wc -l | xargs
+ expect: 1