]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: build: add back common and util tests
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Sep 2025 08:23:58 +0000 (10:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Sep 2025 15:17:18 +0000 (17:17 +0200)
These were dropped by mistake when extracting the crates.

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/common/meson.build
rust/util/meson.build

index b805e0faf573d8e928724172adf1962be40fe27a..07d073182ed10cc8cc76449d2e29a7ee3a1af48a 100644 (file)
@@ -24,6 +24,9 @@ _common_rs = static_library(
 
 common_rs = declare_dependency(link_with: [_common_rs])
 
+rust.test('rust-common-tests', _common_rs,
+          suite: ['unit', 'rust'])
+
 # Doctests are essentially integration tests, so they need the same dependencies.
 # Note that running them requires the object files for C code, so place them
 # in a separate suite that is run by the "build" CI jobs rather than "check".
index 87a893673d23b0a80652a3138166508d94ea6a7c..96330504459424fb7b579d99637a0e458126b328 100644 (file)
@@ -44,6 +44,10 @@ _util_rs = static_library(
 
 util_rs = declare_dependency(link_with: [_util_rs], dependencies: [qemuutil, qom])
 
+rust.test('rust-util-tests', _util_rs,
+          dependencies: [qemuutil, qom],
+          suite: ['unit', 'rust'])
+
 # Doctests are essentially integration tests, so they need the same dependencies.
 # Note that running them requires the object files for C code, so place them
 # in a separate suite that is run by the "build" CI jobs rather than "check".