summaryrefslogtreecommitdiff
path: root/doc/develop/testing.rst
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-07 17:34:42 -0700
committerTom Rini <trini@konsulko.com>2021-03-12 09:57:29 -0500
commit4c8850aafc10d368cef575b31d1b931d3d2ca597 (patch)
tree14d823d1b29ea9fa6add2123d73512395904b3c9 /doc/develop/testing.rst
parenta353e76da994820d67858adc64edcfe6a47f87ab (diff)
doc: Explain how to run tests without pytest
Add details about how to run a sandbox test directly, without using pytest. This is more convenient for rapid development, since it is faster and allows easier use of a debugger. Also mention sandbox_flattree as an example of the different sandbox builds available. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/develop/testing.rst')
-rw-r--r--doc/develop/testing.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/develop/testing.rst b/doc/develop/testing.rst
index f01ca4dc408..87c90eee271 100644
--- a/doc/develop/testing.rst
+++ b/doc/develop/testing.rst
@@ -36,6 +36,7 @@ U-Boot can be built as a user-space application (e.g. for Linux). This
allows test to be executed without needing target hardware. The 'sandbox'
target provides this feature and it is widely used in tests.
+See :doc:`tests_sandbox` for more information.
Pytest Suite
------------
@@ -51,8 +52,16 @@ You can run the tests on sandbox with::
This will produce HTML output in build-sandbox/test-log.html
+Some tests run with other versions of sandbox. For example sandbox_flattree
+runs the tests with livetree (the hierachical devicetree) disabled. You can
+also select particular tests with -k::
+
+ ./test/py/test.py --bd sandbox_flattree --build -k hello
+
See test/py/README.md for more information about the pytest suite.
+See :doc:`tests_sandbox` for how to run tests directly (not through pytest).
+
tbot
----