vtest "Test recursive vcl includes"

shell {echo include '"_recurse.vcl";' > ${tmpdir}/_recurse.vcl}
shell {echo include +glob '"${tmpdir}/_recurse[2].vcl";' > ${tmpdir}/_recurse1.vcl}
shell {echo include '"_recurse1.vcl";' > ${tmpdir}/_recurse2.vcl}

vinyl v1 -arg "-p vcl_path=${tmpdir}" -errvcl "Recursive use of file" {
	backend b { .host = "${localhost}"; }
	include "_recurse.vcl" ;
}

vinyl v2 -arg "-p vcl_path=${tmpdir}" -errvcl "Recursive use of file" {
	backend b { .host = "${localhost}"; }
	include "_recurse1.vcl" ;
}
