bindings: python: add Testing section to README
authorKent Gibson <warthog618@gmail.com>
Sun, 26 May 2024 11:32:33 +0000 (19:32 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 28 May 2024 09:13:15 +0000 (11:13 +0200)
Add a section describing how to run the test suite.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240526113234.253859-2-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/README.md

index 325c63d03891b7f58b5f021df226b1862257244c..cb5cee62cc46980ce2484bc85d8686ffb8622e59 100644 (file)
@@ -102,3 +102,13 @@ with gpiod.request_lines(
         time.sleep(1)
 ```
 
+## Testing
+
+The test suite for the python bindings can be run by calling:
+
+```
+make python-tests-run
+```
+
+from the `libgpiod/bindings/python` directory as root (necessary to be able
+to create the **gpio-sims** used for testing).