--- /dev/null
+Description
+===========
+A test to demonstrate https://redmine.openinfosecfoundation.org/issues/4894 and
+https://redmine.openinfosecfoundation.org/issues/4895.
+
+Rule
+====
+
+Faulty rule provided by Jeff Lucovsky.
+
+PCAP
+====
+
+Pcap from https://wiki.wireshark.org/SampleCaptures#NFS_Protocol_Family
--- /dev/null
+requires:
+ lt-version: 7
+
+exit-code: 0
+
+command: |
+ ${SRCDIR}/src/suricata --set classification-file="${SRCDIR}/etc/classification.config" \
+ --set reference-config-file="${SRCDIR}/etc/reference.config" -l ${OUTPUT_DIR} \
+ --set threshold-file="${TEST_DIR}/threshold.config" \
+ -c "${SRCDIR}/suricata.yaml" -r ${TEST_DIR}/input.pcap -S ${TEST_DIR}/test.rules
+
+checks:
+ - shell:
+ args: grep "Can't use file_data with NFS keywords" stderr | wc -l | xargs
+ expect: 1