@samitouri / QOSamiQemu / commits / d7d7c69023

tests: acpi: x86/q35: add WDAT table test case

Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20260303092532.2410177-6-imammedo@redhat.com>

Igor Mammedov committed Mar 3, 2026 at 10:25 UTC d7d7c6902362f4f9b1d597abb75e54d27677f08b
1 file changed +13
tests/qtest/bios-tables-test.c
+13
@@ -2534,6 +2534,18 @@ static void test_acpi_isapc_smbios_legacy(void)
2534 free_test_data(&data);
2535 }
2536
2537 +static void test_acpi_q35_wdat(void)
2538 +{
2539 + test_data data = {
2540 + .machine = MACHINE_Q35,
2541 + .arch = "x86",
2542 + .variant = ".wdat",
2543 + };
2544 +
2545 + test_acpi_one("-machine wdat=on", &data);
2546 + free_test_data(&data);
2547 +}
2548 +
2549 static void test_oem_fields(test_data *data)
2550 {
2551 int i;
@@ -2828,6 +2840,7 @@ int main(int argc, char *argv[])
2840 qtest_add_func("acpi/q35/cxl", test_acpi_q35_cxl);
2841 #endif
2842 qtest_add_func("acpi/q35/slic", test_acpi_q35_slic);
2843 + qtest_add_func("acpi/q35/wdat", test_acpi_q35_wdat);
2844 }
2845 if (qtest_has_machine("microvm")) {
2846 qtest_add_func("acpi/microvm", test_acpi_microvm_tcg);