tests/acpi: add microvm rtc test

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201020074844.5304-10-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2020-10-20 09:48:43 +02:00
parent f072fd2f85
commit 0c491c8485
1 changed files with 12 additions and 0 deletions

View File

@ -1121,6 +1121,17 @@ static void test_acpi_microvm_usb_tcg(void)
free_test_data(&data);
}
static void test_acpi_microvm_rtc_tcg(void)
{
test_data data;
test_acpi_microvm_prepare(&data);
data.variant = ".rtc";
test_acpi_one(" -machine microvm,acpi=on,rtc=on",
&data);
free_test_data(&data);
}
static void test_acpi_microvm_pcie_tcg(void)
{
test_data data;
@ -1258,6 +1269,7 @@ int main(int argc, char *argv[])
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);
qtest_add_func("acpi/microvm/rtc", test_acpi_microvm_rtc_tcg);
if (strcmp(arch, "x86_64") == 0) {
qtest_add_func("acpi/microvm/pcie", test_acpi_microvm_pcie_tcg);
}