cmd/cue: add regression test for 'cue cmd' with many packages
Thanks to Paul Jolly for writing the testscript in a comment on #1325.
It is added here with some minor tweaks: adding more comments,
and reflecting the current behavior with the last command failing.
Without such a test, it's hard to notice when we might break users
who rely on the existing behavior, intentionally or not.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I82d0229d085e8d63fc3e170e2c92f66434159117
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193717
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>