summary refs log tree commit diff stats
path: root/rust
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-09-19 10:23:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-09-22 17:17:18 +0200
commitb9e8bb6637d5f2926121d68e4f227ba0e0a44186 (patch)
tree371a3429e283693d28a9182be268ad84e9915fcd /rust
parentfcbe1080a4cb16767cdda788504f9793cbbe0532 (diff)
downloadfocaccia-qemu-b9e8bb6637d5f2926121d68e4f227ba0e0a44186.tar.gz
focaccia-qemu-b9e8bb6637d5f2926121d68e4f227ba0e0a44186.zip
rust: build: add back common and util tests
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>
Diffstat (limited to 'rust')
-rw-r--r--rust/common/meson.build3
-rw-r--r--rust/util/meson.build4
2 files changed, 7 insertions, 0 deletions
diff --git a/rust/common/meson.build b/rust/common/meson.build
index b805e0faf5..07d073182e 100644
--- a/rust/common/meson.build
+++ b/rust/common/meson.build
@@ -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".
diff --git a/rust/util/meson.build b/rust/util/meson.build
index 87a893673d..9633050445 100644
--- a/rust/util/meson.build
+++ b/rust/util/meson.build
@@ -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".