When the parser merges the top-level fragments of a dts file, it can
report that a label or path is not found, or that a label-relative
reference is not supported in a plugin. Most of these errors are not
covered by any test, and the two tests which do reach them only check
that dtc fails, not the message or where it is reported. The merge
logic is about to move out of the grammar, so this needs better tests.
Add a test file for each error which is not covered, and check the
message and its position for all of them, including the two existing
ones. Also check that merging carries on after an error, so that later
errors are reported too, that a labelled reference within a plugin adds
the label, that / { ... } and &{/} { ... } differ in a plugin, and that
a label in a plugin becomes an overlay fragment if it is not found,
since nothing covers these either.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Simon Glass <sjg@chromium.org>
Message-ID: <20261116235813.935070-2-sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>