vtest "vinylstat -j"

feature cmd "python3 -c 'import json'"

server s1 -repeat 5 {
	rxreq
	txresp
} -start

vinyl v1 -vcl+backend {} -start

client c1 -repeat 5 {
	txreq
	rxresp
} -run

delay 1

shell { vinylstat -n ${v1_name}  -j }
shell -match "^1$" { vinylstat -n ${v1_name} -j | python3 -c 'import sys, json; print(json.load(sys.stdin)["version"])' }
shell -match "^5$" { vinylstat -n ${v1_name} -j | python3 -c 'import sys, json; print(json.load(sys.stdin)["counters"]["MAIN.client_req"]["value"])' }
