cmd/cue: add a forwards compatibility test case for bugfix releases
When loading a CUE module which uses a higher language.version than
the current language version supported by cmd/cue, it does not matter
whether the version is higher due to a higher bugfix number
or a higher minor or even major number.
We treat the language.version version as a hard version minimum,
even though the language spec should not change in bugfix releases,
for the sake of consistent and intuitive behavior.
language.version also affects the module.cue file schema to use,
and that can indeed change in bugfix releases from time to time.
We already had a test case for a CUE module with a higher minor number
in its language.version; add one with a higher bugfix number as well.
While here, move "cd" testscript commands to be next to the top-level
comment which describes each test case set up via txtar.
For #3197.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ied3603b95662656fa45063421f730e7788646b8e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196300
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>