All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs/devel/testing: iotests check script should be run via 'run'
@ 2026-11-03 11:08 Peter Maydell
  2026-11-03 12:22 ` Alex Bennée
  2026-11-05  8:16 ` Pierrick Bouvier
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Maydell @ 2026-11-03 11:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alex Bennée, Pierrick Bouvier

The iotests section of the testing documentation suggests directly
running the "./check" script.  However if you do this then the
script complains:

WARNING: iotests is being run from outside of the configure-time python virtual environment
[...]
Please use the meson run script:
        /home/pm215/qemu/build/x86-tgt-san-dbg/run ./check

Update the documentation to match this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 docs/devel/testing/main.rst | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/docs/devel/testing/main.rst b/docs/devel/testing/main.rst
index b0ca37fe2ba..e26b8af0c79 100644
--- a/docs/devel/testing/main.rst
+++ b/docs/devel/testing/main.rst
@@ -272,8 +272,12 @@ scripts.  The testing success criteria is golden output comparison, and the
 test files are named with numbers.
 
 To run iotests, make sure QEMU is built successfully, then switch to the
-``tests/qemu-iotests`` directory under the build directory, and run ``./check``
-with desired arguments from there.
+``tests/qemu-iotests`` directory under the build directory, and run
+the ``check`` script via the ``run`` wrapper which sets up the environment:
+
+.. code::
+
+   ../../run ./check [args]
 
 By default, "raw" format and "file" protocol is used; all tests will be
 executed, except the unsupported ones. You can override the format and protocol
@@ -282,16 +286,16 @@ with arguments:
 .. code::
 
   # test with qcow2 format
-  ./check -qcow2
+  ../../run ./check -qcow2
   # or test a different protocol
-  ./check -nbd
+  ../../run ./check -nbd
 
 It's also possible to list test numbers explicitly:
 
 .. code::
 
   # run selected cases with qcow2 format
-  ./check -qcow2 001 030 153
+  ../../run ./check -qcow2 001 030 153
 
 Cache mode can be selected with the "-c" option, which may help reveal bugs
 that are specific to certain cache mode.
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-05 10:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 11:08 [PATCH] docs/devel/testing: iotests check script should be run via 'run' Peter Maydell
2026-11-03 12:22 ` Alex Bennée
2026-11-03 13:26   ` Peter Maydell
2026-11-05  9:34   ` Daniel P. Berrangé
2026-11-05 10:20     ` Peter Maydell
2026-11-05 10:25       ` Daniel P. Berrangé
2026-11-05  8:16 ` Pierrick Bouvier
2026-11-05  9:25   ` Peter Maydell
2026-11-05  9:32   ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.