summary refs log tree commit diff stats
path: root/docs/devel
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-04-05 10:33:09 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-03 22:42:18 +0200
commitf620cadc0c24ae414b46204e57a82f7bf586d2c4 (patch)
treeff502e97b130ceddcc16c274b43fc978f6ef8076 /docs/devel
parent53de966c3e8e6b9db3a81e8081be8e8275a0c6ee (diff)
downloadfocaccia-qemu-f620cadc0c24ae414b46204e57a82f7bf586d2c4.tar.gz
focaccia-qemu-f620cadc0c24ae414b46204e57a82f7bf586d2c4.zip
rust: add qemu-api doctests to "meson test"
Doctests are weird.  They are essentially integration tests, but they're
"ran" by executing rustdoc --test, which takes a compiler-ish
command line.  This is supported by Meson 1.8.0.

Because they run the linker and need all the .o files, run them in the
build jobs rather than the test jobs.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/devel')
-rw-r--r--docs/devel/rust.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/devel/rust.rst b/docs/devel/rust.rst
index 11328c05b4..f66f2bef60 100644
--- a/docs/devel/rust.rst
+++ b/docs/devel/rust.rst
@@ -66,6 +66,8 @@ be run via ``meson test`` or ``make``::
 
    make check-rust
 
+Note that doctests require all ``.o`` files from the build to be available.
+
 Supported tools
 '''''''''''''''