On Tue, Oct 15, 2024 at 03:17:26PM +0200, Paolo Bonzini wrote: > Date: Tue, 15 Oct 2024 15:17:26 +0200 > From: Paolo Bonzini <pbonz...@redhat.com> > Subject: [PATCH 08/16] rust: build tests for the qemu_api crate > X-Mailer: git-send-email 2.46.2 > > Fix some bitrot in tests.rs, and allow the unit tests to be run via > "meson test". > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > rust/qemu-api/meson.build | 3 +++ > rust/qemu-api/src/tests.rs | 2 +- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build > index 42ea815fa5a..436e2f1e836 100644 > --- a/rust/qemu-api/meson.build > +++ b/rust/qemu-api/meson.build > @@ -5,6 +5,7 @@ _qemu_api_rs = static_library( > 'src/lib.rs', > 'src/definitions.rs', > 'src/device_class.rs', > + 'src/tests.rs', > ], > {'.' : bindings_rs}, > ), > @@ -19,6 +20,8 @@ _qemu_api_rs = static_library( > ], > ) > > +rust.test('rust-qemu-api-tests', _qemu_api_rs) > +
It seems the change will bring a warning for "./configure --enable-rust": WARNING: Unknown keyword argument(s) in target rust-qemu-api-tests: rust_abi, prelink, pic.