All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] dtc: Check fatal error messages and document deletes
@ 2026-10-29  9:30 Simon Glass
  2026-10-29  9:30 ` [PATCH v3 1/4] tests: Check the message when dtc fails Simon Glass
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Simon Glass @ 2026-10-29  9:30 UTC (permalink / raw)
  To: Devicetree Compiler; +Cc: David Gibson, Herve Codina, Simon Glass

Tests which expect dtc to fail check only its exit status, so they pass
just as well if dtc fails for some other reason. Also, dts-format.txt
does not describe how a node defined more than once is merged, nor
/delete-property/ and /delete-node/, and it wrongly says that dtc
accepts a file without /dts-v1/ as version 0.

I've dropped the 'delete' patches from this version - it's going to be
a bigger job!

Changes in v3:
- Use run_wrap_error_msg_test() instead of adding -m to dtc-fatal.sh
- Check the message in all five tests
- Add new patch to drop dtc-fatal.sh
- Describe only the general rules, leaving out the edge cases
- Drop the four patches which change how deletes are applied
- Add new patch to correct the description of /dts-v1/

Changes in v2:
- Add new patch to check the error message in dtc-fatal.sh
- Add new patch to document deletes

Simon Glass (4):
  tests: Check the message when dtc fails
  tests: Drop dtc-fatal.sh
  doc: dts-format: Describe later definitions and deletes
  doc: dts-format: Correct what happens without /dts-v1/

 Documentation/dts-format.txt | 40 +++++++++++++++++++++++++++++++++---
 tests/dtc-fatal.sh           | 15 --------------
 tests/run_tests.sh           | 18 +++++++++++-----
 3 files changed, 50 insertions(+), 23 deletions(-)
 delete mode 100755 tests/dtc-fatal.sh

---
base-commit: 6b0371afc5329d7f07cc4f1ff4c5e10b598fadf1
branch: delete-markers3

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-29 11:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29  9:30 [PATCH v3 0/4] dtc: Check fatal error messages and document deletes Simon Glass
2026-10-29  9:30 ` [PATCH v3 1/4] tests: Check the message when dtc fails Simon Glass
2026-10-29 11:11   ` Herve Codina
2026-10-29  9:30 ` [PATCH v3 2/4] tests: Drop dtc-fatal.sh Simon Glass
2026-10-29  9:30 ` [PATCH v3 3/4] doc: dts-format: Describe later definitions and deletes Simon Glass
2026-10-29 11:28   ` Herve Codina
2026-10-29  9:30 ` [PATCH v3 4/4] doc: dts-format: Correct what happens without /dts-v1/ Simon Glass
2026-10-29 11:33   ` Herve Codina
2026-10-29 11:17 ` [PATCH v3 0/4] dtc: Check fatal error messages and document deletes Herve Codina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.