mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Redo build system to properly use autotools and avoid compilation with apxs util.
This commit is contained in:
54
tests/op/validateByteRange.t
Normal file
54
tests/op/validateByteRange.t
Normal file
@@ -0,0 +1,54 @@
|
||||
### Empty
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => "0-255",
|
||||
input => "",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => "",
|
||||
input => "TestCase",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### Invalid
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => "xxx",
|
||||
input => "TestCase",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => "xxx",
|
||||
input => "\x00",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### General
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => "0-255",
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => ord("a")."-".ord("i"),
|
||||
input => "abcdefghi",
|
||||
ret => 0,
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "validateByteRange",
|
||||
param => ord("a")."-".ord("i"),
|
||||
input => "abcdefghij",
|
||||
ret => 1,
|
||||
},
|
Reference in New Issue
Block a user