From f620cadc0c24ae414b46204e57a82f7bf586d2c4 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 5 Apr 2025 10:33:09 +0200 Subject: 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 --- docs/devel/rust.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/devel') 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 ''''''''''''''' -- cgit 1.4.1