Commit b7d53eb
committed
tests: dt_binding_check: new test
We currently "rely" on Rob Herring's mail bot to provide sanity checking
on patches that touch device tree bindings:
https://lore.kernel.org/netdev/[email protected]
and that is sufficient in "public" settings (patches sent to
[email protected] and [email protected] also copied).
But in "private" settings (i.e. individual developers encouraged to do
sanity checking on their own, for example by running ingest_mdir), we
quickly find that Rob's mail bot is apparently closed source, and it has
happened more than once (at least to me) for me to miss newly introduced
dt_binding_check errors even if I did the due dilligence of running that
test locally. So an automated check would be good to have.
The justification for including it in NIPA is that while device tree
maintainers review binding patches, they get applied to the subsystem
tree (in this case netdev).
Furthermore, I don't see the overlap with Rob Herring's mail bot as
being a strong reason against such checks in NIPA, similar to how the
existence of Intel's kbuild test robot does not preclude NIPA from
having build tests.
In terms of implementation, "make dt_binding_check" does not always
nicely print "error" or "warning" on the lines with issues. Furthermore,
the errors are multi-line. So instead of filtering for error lines, here
we filter out the "normal" lines, which contain things such as "make",
"SCHEMA", "CHKDT", "LINT", "DTEX", "DTC" at the beginning.
Signed-off-by: Vladimir Oltean <[email protected]>1 parent b4025ac commit b7d53eb
2 files changed
+89
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments