# Version output without VCS information.
exec cue version
stdout -count=1 '^cue version .+'
stdout -count=1 '^go version (devel )?go1.'

# Version output with VCS information.
env CUE_VERSION_TEST_CFG='[{"Key":"vcs","Value":"git"},{"Key":"vcs.revision","Value":"47b7032385cb490fab7d47b89fca36835cf13d39"},{"Key":"vcs.time","Value":"2022-05-10T04:58:46Z"},{"Key":"vcs.modified","Value":"true"}]'
exec cue version
stdout -count=1 '^cue version .+'
stdout -count=1 '^go version (devel )?go1.'
stdout -count=1 'vcs git'
stdout -count=1 'vcs\.revision 47b7032385cb490fab7d47b89fca36835cf13d39'
stdout -count=1 'vcs\.time 2022-05-10T04:58:46Z'
stdout -count=1 'vcs\.modified true'
stdout -count=1 'cue\.lang\.version '${CUE_LANGUAGE_VERSION@R}'$'
