On Mon, Oct 21, 2024 at 06:35:32PM +0200, Paolo Bonzini wrote:
> Date: Mon, 21 Oct 2024 18:35:32 +0200
> From: Paolo Bonzini <pbonz...@redhat.com>
> Subject: [PATCH v2 07/13] rust: build integration test for the qemu_api
>  crate
> X-Mailer: git-send-email 2.46.2
> 
> Adjust the integration test to compile with a subset of QEMU object
> files, and make it actually create an object of the class it defines.
> 
> Follow the Rust filesystem conventions, where tests go in tests/ if
> they use the library in the same way any other code would.
> 
> Reviewed-by: Zhao Liu <zhao1....@intel.com>
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  meson.build                  | 10 ++++-
>  rust/qemu-api/meson.build    | 26 ++++++++++--
>  rust/qemu-api/src/lib.rs     |  3 --
>  rust/qemu-api/src/tests.rs   | 49 ----------------------
>  rust/qemu-api/tests/tests.rs | 78 ++++++++++++++++++++++++++++++++++++
>  5 files changed, 110 insertions(+), 56 deletions(-)
>  delete mode 100644 rust/qemu-api/src/tests.rs
>  create mode 100644 rust/qemu-api/tests/tests.rs

Ran "make check-unit":

qemu:unit+rust / rust-qemu-api-integration          OK

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


Reply via email to