]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/acpi: add microvm usb test
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 20 Oct 2020 07:48:42 +0000 (09:48 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Oct 2020 09:36:19 +0000 (11:36 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201020074844.5304-9-kraxel@redhat.com

tests/qtest/bios-tables-test.c

index 5647624492334fa3342a41cce617fd78f6156b00..17e11800274df91bb241bc3242cb3bca97190ef1 100644 (file)
@@ -1110,6 +1110,17 @@ static void test_acpi_microvm_tcg(void)
     free_test_data(&data);
 }
 
+static void test_acpi_microvm_usb_tcg(void)
+{
+    test_data data;
+
+    test_acpi_microvm_prepare(&data);
+    data.variant = ".usb";
+    test_acpi_one(" -machine microvm,acpi=on,usb=on,rtc=off",
+                  &data);
+    free_test_data(&data);
+}
+
 static void test_acpi_microvm_pcie_tcg(void)
 {
     test_data data;
@@ -1246,6 +1257,7 @@ int main(int argc, char *argv[])
         qtest_add_func("acpi/piix4/acpihmat", test_acpi_piix4_tcg_acpi_hmat);
         qtest_add_func("acpi/q35/acpihmat", test_acpi_q35_tcg_acpi_hmat);
         qtest_add_func("acpi/microvm", test_acpi_microvm_tcg);
+        qtest_add_func("acpi/microvm/usb", test_acpi_microvm_usb_tcg);
         if (strcmp(arch, "x86_64") == 0) {
             qtest_add_func("acpi/microvm/pcie", test_acpi_microvm_pcie_tcg);
         }