--- /dev/null
+Test that Suricata will write 3 uncompressed pcap files.
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - pcap-log:
+ enabled: yes
+ filename: log.pcap
+ compression: none
+ mode: normal
+ limit: 4mb
+ ts-format: usec
+
+# Enable enging logging to JSON so we can verify it.
+logging:
+ outputs:
+ - console:
+ enabled: yes
+ - file:
+ enabled: yes
+ level: perf
+ filename: eve.json
+ type: json
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../bug-2482-01/proxyCONNECT_443.pcap
+
+args:
+ - --runmode=single
+
+checks:
+ - shell:
+ args: find . -type f -name 'log.pcap.1523389*.*' | wc -l | xargs
+ expect: 3
--- /dev/null
+Test that Suricata will write 3 uncompressed pcap files in multi mode.
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - pcap-log:
+ enabled: yes
+ filename: log.pcap.%n-%t-%i
+ compression: none
+ mode: multi
+ limit: 4mb
+ ts-format: usec
+
+# Enable enging logging to JSON so we can verify it.
+logging:
+ outputs:
+ - console:
+ enabled: yes
+ - file:
+ enabled: yes
+ level: perf
+ filename: eve.json
+ type: json
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../bug-2482-01/proxyCONNECT_443.pcap
+
+args:
+ - --runmode=single
+
+checks:
+ - shell:
+ args: find . -type f -name 'log.pcap.1-1523389*.*-*' | wc -l | xargs
+ expect: 3