On 10/7/26 23:43, Pierrick Bouvier wrote:
We document how to build and run tcg tests with new framework.
Reviewed-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Pierrick Bouvier <[email protected]>
---
docs/devel/build-system.rst | 4 +--
docs/devel/testing/main.rst | 55 +++++++++++++++++--------------------
2 files changed, 27 insertions(+), 32 deletions(-)
Running individual tests
~~~~~~~~~~~~~~~~~~~~~~~~
-Tests can also be run directly from the test build directory. If you
-run ``make help`` from the test build directory you will get a list of
-all the tests that can be run. Please note that same binaries are used
-in multiple tests, for example::
+Tests can also be run using directly meson test::
- make run-plugin-test-mmap-with-libinline.so
+ ./pyvenv/bin/meson test $TARGET-$TEST
-will run the mmap test with the ``libinline.so`` TCG plugin. The
-gdbstub tests also re-use the test binaries but while exercising gdb.
+For instance::
+
+ ./pyvenv/bin/meson test aarch64-softmmu-hello
+
+Test command and output can be accessed by using verbose flag::
+
+ ./pyvenv/bin/meson test aarch64-softmmu-hello --verbose
Nice :)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>