With strict content parsing, -T should fail out for version 6 and 7.
--- /dev/null
+Tests the behaviour of -T when a rule contains incomplete hex.
+
+For Suricata 6.0.x, -T should pass unless
+--strict-rule-keywords=content is provided.
+
+For Suricata 7.0+, -T should fail.
--- /dev/null
+%YAML 1.1
+---
--- /dev/null
+alert tcp any any -> any any (msg:"incomplete hex test rule"; content:"|22 2 22|"; sid:12346; rev:1;)
--- /dev/null
+args:
+ - -T --strict-rule-keywords=content
+
+pcap: false
+
+exit-code: 1