[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 7/9] tests/acpi: add microvm usb test
From: |
Gerd Hoffmann |
Subject: |
[PATCH v2 7/9] tests/acpi: add microvm usb test |
Date: |
Thu, 1 Oct 2020 10:28:32 +0200 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
tests/qtest/bios-tables-test.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index edf672d26f0b..ed7aba69c9bd 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1091,6 +1091,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;
@@ -1225,6 +1236,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);
}
--
2.27.0
- [PATCH v2 0/9] microvm: add usb support, Gerd Hoffmann, 2020/10/01
- [PATCH v2 7/9] tests/acpi: add microvm usb test,
Gerd Hoffmann <=
- [PATCH v2 6/9] tests/acpi: add empty tests/data/acpi/microvm/DSDT.{usb, rtc} files, Gerd Hoffmann, 2020/10/01
- [PATCH v2 9/9] tests/acpi: update expected data files, Gerd Hoffmann, 2020/10/01
- [PATCH v2 8/9] tests/acpi: add microvm rtc test, Gerd Hoffmann, 2020/10/01
- [PATCH v2 5/9] tests/acpi: allow updates for expected data files, Gerd Hoffmann, 2020/10/01
- [PATCH v2 1/9] acpi: add aml builder stubs, Gerd Hoffmann, 2020/10/01
- [PATCH v2 2/9] usb/xhci: add include/hw/usb/xhci.h header file, Gerd Hoffmann, 2020/10/01
- [PATCH v2 3/9] usb/xhci: add xhci_sysbus_build_aml() helper, Gerd Hoffmann, 2020/10/01
- [PATCH v2 4/9] microvm: add usb support, Gerd Hoffmann, 2020/10/01