]> www.infradead.org Git - users/dwmw2/qemu.git/commit
rust: build integration test for the qemu_api crate
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Oct 2024 14:30:56 +0000 (16:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 13:18:15 +0000 (14:18 +0100)
commitcde3c425d16f6d0c8e6f47940ef5152b9021f3f2
tree7c501a0aab7f6c4f25b437b5f7ed1c2f5d1b7025
parent4f7521916d12e07d25d5175f2da9614624344a7b
rust: build integration test for the qemu_api crate

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: Junjie Mao <junjie.mao@hotmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build
rust/qemu-api/meson.build
rust/qemu-api/src/lib.rs
rust/qemu-api/src/tests.rs [deleted file]
rust/qemu-api/tests/tests.rs [new file with mode: 0644]