Commit b4d83b01 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

test: filter-limit: addr

parent 44424903
...@@ -14,25 +14,32 @@ function add(limit_type, base) ...@@ -14,25 +14,32 @@ function add(limit_type, base)
for _, name in ipairs{ for _, name in ipairs{
false, type(limit) == 'table' and count == 1 and 'foo' or nil false, type(limit) == 'table' and count == 1 and 'foo' or nil
} do } do
for _, no_update in ipairs{false, name or nil} do for _, addr in ipairs{false, name and 'dest' or nil} do
local upd for _, no_update in ipairs{false, name or nil} do
if no_update then upd = false end local upd
for _, log in ipairs{false, true, 'none'} do if no_update then upd = false end
for _, action in ipairs{false, 'pass'} do for _, log in ipairs{false, true, 'none'} do
if not (count == 30 and log and action) then for _, action in ipairs{false, 'pass'} do
table.insert( if not (count == 30 and log and action) then
res, table.insert(
update( res,
{ update(
[limit_type..'-limit']=type(limit) == 'table' and update( {
{name=name or nil, update=upd}, limit [limit_type..'-limit']=type(limit) == 'table' and update(
) or limit, {
log=log or nil, name=name or nil,
action=action or nil addr=addr or nil,
}, update=upd
base or {} },
) limit
) ) or limit,
log=log or nil,
action=action or nil
},
base or {}
)
)
end
end end
end end
end end
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment