Commit 515fdb1a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More VCL compiler coverage tests



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3286 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 59a83fef
......@@ -2,6 +2,39 @@
test "Various VCL compiler coverage tests"
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
include "/dev/null" ;
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
include "/dev/null" |
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
include <<
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
if (req.url == "foo") {
} elsif (req.url == "bar") {
} elseif (req.url == "baz") {
}
}
}
varnish v1 -badvcl {
/* token test */
error lookup hash pipe pass fetch deliver discard keep restart
include
if else elseif elsif
++ -- && || <= == != >= >> << += -= *= /=
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
......
......@@ -54,4 +54,3 @@ varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
?
}
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