vtest "Check -f command line arg"

server s1 {
	rxreq
	expect req.url == "/foo"
	txresp -body "foo"
	rxreq
	expect req.url == "/bar"
	txresp -body "bar"
} -start

shell "echo 'vcl 4.0; backend foo { .host = \"${s1_addr}\"; .port = \"${s1_port}\"; }' > ${tmpdir}/_b00014.vcl"
vinyl v1 -arg "-f ${tmpdir}/_b00014.vcl" -start

client c1 {
	txreq -url /foo
	rxresp
} -run

vinyl v1 -cliok "vcl.load foo ${tmpdir}/_b00014.vcl" -cliok "vcl.use foo"

client c1 {
	txreq -url /bar
	rxresp
} -run
