varnishtest "varnishtop -1/-d"

server s1 {
	rxreq
	txresp
} -start

varnish v1 -vcl+backend { } -start

client c1 {
	txreq
	rxresp
} -run

process p1 -dump {varnishtop -n ${v1_name} -d -i ReqMethod} -start
process p1 -winsz 30 80
delay 2
process p1 -expect-text 1  1 "list length 1"
process p1 -expect-text 1 75 "(EOF)"
process p1 -expect-text 3  6 "1.00 ReqMethod      GET"
process p1 -screen_dump -write q -wait

process p2 -dump {varnishtop -n ${v1_name} -1 -i ReqMethod} -start
process p2 -winsz 30 80
delay 2
process p2 -expect-text 1 6 "1.00 ReqMethod GET"
process p2 -screen_dump -wait
