]> err.no Git - varnish/commitdiff
Add a couple of test-case for vcc_parse.c
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 19:40:30 +0000 (19:40 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 19:40:30 +0000 (19:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3279 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00020.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/v00020.vtc b/varnish-cache/bin/varnishtest/tests/v00020.vtc
new file mode 100644 (file)
index 0000000..b131699
--- /dev/null
@@ -0,0 +1,14 @@
+# $Id$
+
+test "VCL compiler coverage test: vcc_parse.c"
+
+varnish v1 -vcl {
+backend b { .host = "127.0.0.1"; }
+C{
+#include <stdio.h>
+}C
+}
+
+varnish v1 -badvcl { 0; }
+
+varnish v1 -badvcl " sub vcl_recv { { } { "