vtest "Basic VSM status check"

feature vtest_cmd varnish

# just launch varnishd
varnish v1 -cliok ping
vsm m1 -expect-status mgt-running

varnish v1 -vcl "backend be none;"
vsm m1 -expect-status mgt-running

varnish v1 -start
vsm m1 -expect-status \
	mgt-running,mgt-changed,wrk-running,wrk-changed,wrk-restarted

varnish v1 -vcl "backend be none;"
vsm m1 -expect-status mgt-running,wrk-running,wrk-changed

# The order of status flags does not matter, the next one is equivalent.
varnish v1 -vcl "backend be none;"
vsm m1 -expect-status wrk-changed,wrk-running,mgt-running

varnish v1 -stop
vsm m1 -expect-status mgt-running,mgt-changed

varnish v1 -start
vsm m1 -expect-status \
	mgt-running,mgt-changed,wrk-running,wrk-changed,wrk-restarted
