tests: cover new SMBIOS platform fields

The structured SMBIOS platform config introduced six new keys
(system_manufacturer, system_product_name, system_version,
system_family, system_sku_number, chassis_asset_tag), but
integration coverage only existed for serial_number, uuid, and
oem_strings.

Add _test_dmi_system_and_chassis, which boots a guest with all
six keys set and checks each value via `dmidecode -s` using the
same leaf name as the CLI key. Execute it in both the regular
and SEV-SNP integration suites.

On-behalf-of: SAP leander.kohler@sap.com
Signed-off-by: Leander Kohler <leander.kohler@cyberus-technology.de>
This commit is contained in:
Leander Kohler
2026-05-27 12:12:44 +02:00
committed by Rob Bradford
parent b3f79e3a2f
commit 3b79503e2f
3 changed files with 61 additions and 0 deletions

View File

@@ -2051,6 +2051,13 @@ mod common_parallel {
_test_dmi_oem_strings(&guest);
}
#[test]
#[cfg(target_arch = "x86_64")]
fn test_dmi_system_and_chassis() {
let guest = basic_regular_guest!(JAMMY_IMAGE_NAME);
_test_dmi_system_and_chassis(&guest);
}
#[test]
fn test_virtio_fs() {
_test_virtio_fs(&prepare_virtiofsd, false, false, None);