Commit 8fa3c848f8 for qemu.org
commit 8fa3c848f83f4e5d7a386ae47b6a37488affd265
Author: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Date: Thu Aug 27 22:15:05 2026 +0000
docs/devel/testing/: update documentation
We document how to build and run tcg tests with new framework.
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Tested-by: Aniket Sahu <asahu1x@linux.ibm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Message-ID: <20260827221506.91574-105-pierrick.bouvier@oss.qualcomm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/docs/devel/build-system.rst b/docs/devel/build-system.rst
index 71331e64ac..c64d40b42a 100644
--- a/docs/devel/build-system.rst
+++ b/docs/devel/build-system.rst
@@ -447,8 +447,8 @@ these sub-Makefiles, the resulting build is largely non-recursive.
Tests, whether defined in ``meson.build`` or not, are also ran by the
Makefile with the traditional ``make check`` phony target, while benchmarks
are run with ``make bench``. Meson test suites such as ``unit`` can be ran
-with ``make check-unit``, and ``make check-tcg`` builds and runs "non-Meson"
-tests for all targets.
+with ``make check-unit``, and ``make check-tcg`` builds and runs tcg tests
+for all targets.
If desired, it is also possible to use ``ninja`` and ``pyvenv/bin/meson test``,
respectively to build emulators and run tests defined in meson.build.
diff --git a/docs/devel/testing/main.rst b/docs/devel/testing/main.rst
index c6821a36d9..fadb376eaf 100644
--- a/docs/devel/testing/main.rst
+++ b/docs/devel/testing/main.rst
@@ -13,7 +13,7 @@ Most (but not all) tests are also integrated as an automated test into
the meson build system so can be run directly from the build tree,
for example::
- [./pyvenv/bin/]meson test --suite qemu:softfloat
+ ./run meson test --suite qemu:softfloat
will run just the softfloat tests.
@@ -1035,29 +1035,40 @@ See :ref:`container-ref` for more details.
Running subset of tests
~~~~~~~~~~~~~~~~~~~~~~~
-You can build the tests for one architecture::
+You can build the tcg tests using::
- make build-tcg-tests-$TARGET
+ make tcg-tests
-And run with::
+And run them for one target with::
- make run-tcg-tests-$TARGET
+ make check-tcg-$TARGET
Adding ``V=1`` to the invocation will show the details of how to
invoke QEMU for the test which is useful for debugging tests.
+Tests can also be run using directly meson test::
+
+ ./run meson test --suite tcg
+ ./run meson test --suite tcg-$TARGET
+
+Tests can be listed using::
+
+ ./run meson test --suite tcg --list
+
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::
+
+ ./run meson test $TARGET-$TEST
+
+For instance::
+
+ ./run meson test aarch64-softmmu-hello
- make run-plugin-test-mmap-with-libinline.so
+Test command and output can be accessed by using verbose flag::
-will run the mmap test with the ``libinline.so`` TCG plugin. The
-gdbstub tests also re-use the test binaries but while exercising gdb.
+ ./run meson test aarch64-softmmu-hello --verbose
TCG test dependencies
~~~~~~~~~~~~~~~~~~~~~