Commit c327b202 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Coverage test for vcc_acl



git-svn-id: http://www.varnish-cache.org/svn/trunk@3251 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 013a6b30
# $Id$
test "VCL compiler coverage test: vcc_acl.c"
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a { "10.1.2.3"/33; }
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a { "1::2"/129; }
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
acl a {
"1.2.3.4";
"1.2.3.4";
}
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a {
"1.2.3.4";
!"1.2.3.4";
}
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a { "en.lille.nisse.rejste"; }
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a { "10.1.2."; }
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a { ( "10.1.2"; }
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
acl a { "10.1.2" ); }
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
acl a {
"10.1.3";
("en.lille.nisse.rejste");
}
sub vcl_recv { if (client.ip ~ a) { pass; } }
}
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