This commit adds test cases for the `byte_jump` `from_end` keyword.
--- /dev/null
+# Jump value from payload will be 13 (dec)
+# payload; `Question?13When will the pandemic end?`
+alert tcp any any -> any any (msg:"Byte-jump test 1";content:"Question?"; byte_jump:2,0,relative,string,from_end,post_offset -26; content:"pandemic";distance:0; sid:1;)
+alert tcp any any -> any any (msg:"Byte-jump test 2";content:"Question?"; byte_jump:0,0,relative,string,from_end,post_offset -3; content:"pandemic";distance:0; sid:2;)
--- /dev/null
+requires:
+ min-version: 6
+
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 2