varnishtest "varnishlog write vsl to stdout"

feature cmd "command -v gzip"
feature cmd "command -v gunzip"

varnish v1 -vcl {
	backend be none;
} -start

client c1 {
	txreq
	rxresp
	expect resp.status == 503
} -run

shell {varnishlog -d -w - -n ${v1_name} | gzip >vsl.gz}
shell {ls -l}
shell -match "RespStatus +503" {gunzip < vsl.gz | varnishlog -r -}
