Commit 36ac2d9
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/176134124286.2841725.8990137232361008022.robh@kernel.org
and that is sufficient in "public" settings (patches sent to
netdev@vger.kernel.org and devicetree@vger.kernel.org also copied).
But in "private" settings (i.e. individual developers encouraged to do
sanity checking on their own, for example by running ingest_mdir),
something that replicates Rob's mail bot is still required:
https://gitlab.com/robherring/dt-review-ci/
https://gitlab.com/robherring/pw-utils
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).
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. The "normal" lines contain things such as
"make", "SCHEMA", "CHKDT", "LINT", "DTEX", "DTC" at the beginning.
Instead of detecting all 'normal' lines to filter them out, we just use
'make -s' which suppresses them, and leaves only the error messages.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>1 parent 788f069 commit 36ac2d9
2 files changed
Lines changed: 84 additions & 0 deletions
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments