From: phk Date: Sun, 5 Oct 2008 22:45:41 +0000 (+0000) Subject: Test coverage for vcc_token.c X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f025b953806763162460ccdef82b87f38afe87da;p=varnish Test coverage for vcc_token.c git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3259 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00019.vtc b/varnish-cache/bin/varnishtest/tests/v00019.vtc new file mode 100644 index 00000000..75ed6569 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/v00019.vtc @@ -0,0 +1,57 @@ +# $Id$ + +test "VCL compiler coverage test: vcc_token.c" + +varnish v1 -badvcl " C{ " + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { set req.url = "%/"; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { set req.url = "%a/"; } +} + +varnish v1 -vcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { set req.url = "%4a"; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { set req.url = "%0a"; } +} + +varnish v1 -vcl { + backend b { .host = "127.0.0.1"; } + # comment + sub vcl_recv { set req.url = "x"; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + /* +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + {" } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + " +} + +varnish v1 -vcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { C{ int i; (void)i; }C } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + ? +} +