[PATCH v3 1/3] Add validation instructions

Simon Glass sjg at chromium.org
Mon Aug 21 20:01:15 CEST 2023


Add simple instructions for people wanting to validate their schema.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 README.md | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/README.md b/README.md
index 9d2f6e8..d8767fa 100644
--- a/README.md
+++ b/README.md
@@ -118,6 +118,25 @@ Example:
 dt-check-compatible -s processed-schema.json vendor,a-compatible
 ```
 
+## Testing your changes
+
+Once you add or change schema, you should test it locally. This assumes that
+your system is set up so that 'python' runs Python 3.
+
+First make sure you don't have any existing dt-schema in your system as this
+may interfere:
+
+```
+sudo apt-get remove dt-schema
+pip remove dt-schema
+```
+
+Then, to validate, use:
+
+```
+PYTHONPATH=. test/test-dt-validate.py
+```
+
 ## Installing
 The project and its dependencies can be installed with pip:
 
-- 
2.42.0.rc1.204.g551eb34607-goog



More information about the U-Boot mailing list