mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
d43e8bd092
The new global_asm_data macro allows to embed the compiled assembly as an array, which makes it easier to modify and write new integration tests for the hypervisor. A proc-macro is needed to generate random symbols and forward arbitrary arguments to the global_asm! macro. TEST=cargo test --doc --package hypervisor_test_macro TEST=cargo nextest run --workspace --features=all-msvc64_product_debug_test,whpx --profile=default -E 'package(hypervisor) & test(/.*test_minimal_virtualization/)' BUG=b:334055761 Change-Id: I83b4b5f46bdd39adbfd279fefabbf275eb6127ea Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5549033 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Judson Powers <judsonp@google.com> Commit-Queue: Kaiyi Li <kaiyili@google.com> Reviewed-by: Dennis Kempin <denniskempin@google.com>
14 lines
254 B
TOML
14 lines
254 B
TOML
[package]
|
|
name = "hypervisor_test_macro"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
proc-macro2 = { version = "^1", features = ["span-locations"] }
|
|
quote = "^1"
|
|
syn = "2"
|
|
rand = "0.8"
|