From f025b953806763162460ccdef82b87f38afe87da Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 5 Oct 2008 22:45:41 +0000 Subject: [PATCH] Test coverage for vcc_token.c git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3259 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/v00019.vtc | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/v00019.vtc 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"; } + ? +} + -- 2.39.5