From 2da61aff2ad244669dbbed527e4afac449de3ec3 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 10 Oct 2008 21:43:02 +0000 Subject: [PATCH] More VCL compiler coverage tests git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3288 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/v00021.vtc | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/v00021.vtc diff --git a/varnish-cache/bin/varnishtest/tests/v00021.vtc b/varnish-cache/bin/varnishtest/tests/v00021.vtc new file mode 100644 index 00000000..0a95dfef --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/v00021.vtc @@ -0,0 +1,52 @@ +# $Id$ + +test "VCL compiler coverage test: vcc_xref.c" + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + sub vcl_recv { set obj.ttl = 1 w; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + + sub foo { set obj.ttl = 1 w; } + sub vcl_recv { call foo ; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + + sub vcl_recv { discard; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + + sub foo { discard; } + sub vcl_recv { call foo; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + + sub foo { call foo; } + sub vcl_recv { call foo; } +} + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + + sub bar { call foo; } + sub foo { call bar; } + sub vcl_recv { call foo; } +} + + +varnish v1 -badvcl { + backend b { .host = "127.0.0.1"; } + + acl foo { "localhost"; } + +} + -- 2.39.5