[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] tests/acpi: add usb testcase for virt
From: |
Gerd Hoffmann |
Subject: |
[PATCH 6/8] tests/acpi: add usb testcase for virt |
Date: |
Fri, 23 Oct 2020 09:10:20 +0200 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
tests/qtest/bios-tables-test.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 3830a40d1041..438cea38a177 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1230,6 +1230,23 @@ static void test_acpi_virt_tcg(void)
free_test_data(&data);
}
+static void test_acpi_virt_tcg_usb(void)
+{
+ test_data data = {
+ .machine = "virt",
+ .tcg_only = true,
+ .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd",
+ .uefi_fl2 = "pc-bios/edk2-arm-vars.fd",
+ .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2",
+ .ram_start = 0x40000000ULL,
+ .scan_len = 128ULL * 1024 * 1024,
+ };
+
+ data.variant = ".usb";
+ test_acpi_one("-cpu cortex-a57 -machine usb=on", &data);
+ free_test_data(&data);
+}
+
int main(int argc, char *argv[])
{
const char *arch = qtest_get_arch();
@@ -1277,6 +1294,7 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/virt", test_acpi_virt_tcg);
qtest_add_func("acpi/virt/numamem", test_acpi_virt_tcg_numamem);
qtest_add_func("acpi/virt/memhp", test_acpi_virt_tcg_memhp);
+ qtest_add_func("acpi/virt/usb", test_acpi_virt_tcg_usb);
}
ret = g_test_run();
boot_sector_cleanup(disk);
--
2.27.0
- [PATCH 0/8] arm/virt: add usb support, Gerd Hoffmann, 2020/10/23
- [PATCH 2/8] tests/acpi: add empty tests/data/acpi/virt/DSDT.usb file, Gerd Hoffmann, 2020/10/23
- [PATCH 3/8] arm/virt: add support for -machine usb=on, Gerd Hoffmann, 2020/10/23
- [PATCH 7/8] tests/acpi: update expected data files, Gerd Hoffmann, 2020/10/23
- [PATCH 5/8] arm/virt: add acpi dsdt entry for xhci, Gerd Hoffmann, 2020/10/23
- [PATCH 4/8] arm/virt: add device tree node for xhci, Gerd Hoffmann, 2020/10/23
- [PATCH 1/8] tests/acpi: allow updates for expected data files, Gerd Hoffmann, 2020/10/23
- [PATCH 6/8] tests/acpi: add usb testcase for virt,
Gerd Hoffmann <=
- [PATCH 8/8] tests/acpi: disallow updates for expected data files, Gerd Hoffmann, 2020/10/23
- Re: [PATCH 0/8] arm/virt: add usb support, Peter Maydell, 2020/10/23
- Re: [PATCH 0/8] arm/virt: add usb support, Michael S. Tsirkin, 2020/10/23