varnishtest "CLI coverage test"

varnish v1 -cliok storage.list
varnish v1 -clijson "storage.list -j"

server s1 {
	rxreq
	txresp
} -start

varnish v1 
varnish v1 -cliok vcl.list
varnish v1 -clijson "vcl.list -j"

varnish v1 -vcl+backend {}
varnish v1 -vcl+backend {}

varnish v1 -cliok vcl.list
varnish v1 -clijson "vcl.list -j"

varnish v1 -cliok start

varnish v1 -cliok vcl.list
varnish v1 -clijson "vcl.list -j"

varnish v1 -cliok "vcl.use vcl1"

varnish v1 -clierr 300 "vcl.discard vcl1"

varnish v1 -clierr 106 "vcl.discard vcl0"

varnish v1 -clierr 106 {vcl.inline vcl2 "vcl 4.0; backend foo {.host = \"${localhost}\";} "}

varnish v1 -clierr 106 {vcl.load vcl3 ./nonexistent.vcl}

varnish v1 -cliok "vcl.discard vcl2"

varnish v1 -clierr 106 {vcl.load /invalid/name.vcl vcl4}
