internal/cuetxtar: auto-manage out/errors.txt
With CUE_UPDATE=1, the inline runner now automatically adds
out/errors.txt when CUE evaluation errors are present and removes it
when it becomes empty. The section is always inserted after the last
input file and before any out/ section (e.g. out/compile).
The meta-test framework is updated to only run the "plain run of
update output" check when source (non-out/) files actually changed.
If only out/ sections changed (e.g. because out/errors.txt was
auto-created), the @test assertions are unchanged so no new failures
can be introduced.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Ia6bfa8ba711e39d6d928e071637efcde3735aa2b
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1235753
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>