Commit ab42ea28 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Coverage testcase for vcc_action.c



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3255 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 893050fa
# $Id$
test "VCL compiler coverage test: vcc_action.c"
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_hit { restart ; }
sub vcl_miss { restart rollback; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { error obj.status ; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_miss { error req.url ; }
sub vcl_pass { error "the butter please" ; }
sub vcl_fetch { error obj.status req.url; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_miss { set server.port = 1000; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.ttl /= 2; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.ttl >>= 2; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { set req.backend += b; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { set req.url += server.port; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
/* XXX: This should not really be an error */
sub vcl_recv { set req.url = "foo" 2 "bar"; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.cacheable += 1; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.cacheable = true; }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.cacheable = false; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { set obj.cacheable = mu; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { unset obj.cacheable; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { purge_url (3); }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { purge_hash (3); }
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { purge_hash ("foo"); }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { panic 3; }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv { kluf ; }
}
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