qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rust: build: add back common and util tests
@ 2025-09-19  8:36 Paolo Bonzini
  2025-09-19 10:41 ` Manos Pitsidianakis
  2025-09-23 14:38 ` Zhao Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2025-09-19  8:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-rust

These were dropped by mistake when extracting the crates.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 rust/common/meson.build | 3 +++
 rust/util/meson.build   | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/rust/common/meson.build b/rust/common/meson.build
index b805e0faf57..07d073182ed 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 87a893673d2..96330504459 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".
-- 
2.51.0



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

* Re: [PATCH] rust: build: add back common and util tests
  2025-09-19  8:36 [PATCH] rust: build: add back common and util tests Paolo Bonzini
@ 2025-09-19 10:41 ` Manos Pitsidianakis
  2025-09-23 14:38 ` Zhao Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Manos Pitsidianakis @ 2025-09-19 10:41 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel, qemu-rust

On Fri, Sep 19, 2025 at 11:37 AM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> These were dropped by mistake when extracting the crates.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>

>  rust/common/meson.build | 3 +++
>  rust/util/meson.build   | 4 ++++
>  2 files changed, 7 insertions(+)
>
> diff --git a/rust/common/meson.build b/rust/common/meson.build
> index b805e0faf57..07d073182ed 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 87a893673d2..96330504459 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".
> --
> 2.51.0
>
>


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

* Re: [PATCH] rust: build: add back common and util tests
  2025-09-19  8:36 [PATCH] rust: build: add back common and util tests Paolo Bonzini
  2025-09-19 10:41 ` Manos Pitsidianakis
@ 2025-09-23 14:38 ` Zhao Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Zhao Liu @ 2025-09-23 14:38 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel, qemu-rust

On Fri, Sep 19, 2025 at 10:36:17AM +0200, Paolo Bonzini wrote:
> Date: Fri, 19 Sep 2025 10:36:17 +0200
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH] rust: build: add back common and util tests
> 
> These were dropped by mistake when extracting the crates.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  rust/common/meson.build | 3 +++
>  rust/util/meson.build   | 4 ++++
>  2 files changed, 7 insertions(+)> 

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>



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

end of thread, other threads:[~2025-09-23 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19  8:36 [PATCH] rust: build: add back common and util tests Paolo Bonzini
2025-09-19 10:41 ` Manos Pitsidianakis
2025-09-23 14:38 ` Zhao Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).