diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/acpi/virt/APIC.topology | bin | 0 -> 732 bytes | |||
-rw-r--r-- | tests/data/acpi/virt/DSDT.topology | bin | 0 -> 5398 bytes | |||
-rw-r--r-- | tests/data/acpi/virt/PPTT | bin | 96 -> 76 bytes | |||
-rw-r--r-- | tests/data/acpi/virt/PPTT.acpihmatvirt | bin | 196 -> 156 bytes | |||
-rw-r--r-- | tests/data/acpi/virt/PPTT.topology | bin | 0 -> 336 bytes | |||
-rw-r--r-- | tests/qapi-schema/meson.build | 6 | ||||
-rw-r--r-- | tests/qtest/bios-tables-test.c | 19 | ||||
-rw-r--r-- | tests/qtest/fuzz/generic_fuzz.c | 1 | ||||
-rw-r--r-- | tests/unit/test-cutils.c | 8 |
9 files changed, 29 insertions, 5 deletions
diff --git a/tests/data/acpi/virt/APIC.topology b/tests/data/acpi/virt/APIC.topology Binary files differnew file mode 100644 index 0000000..3a6ac52 --- /dev/null +++ b/tests/data/acpi/virt/APIC.topology diff --git a/tests/data/acpi/virt/DSDT.topology b/tests/data/acpi/virt/DSDT.topology Binary files differnew file mode 100644 index 0000000..501314c --- /dev/null +++ b/tests/data/acpi/virt/DSDT.topology diff --git a/tests/data/acpi/virt/PPTT b/tests/data/acpi/virt/PPTT Binary files differindex f56ea63..7a1258e 100644 --- a/tests/data/acpi/virt/PPTT +++ b/tests/data/acpi/virt/PPTT diff --git a/tests/data/acpi/virt/PPTT.acpihmatvirt b/tests/data/acpi/virt/PPTT.acpihmatvirt Binary files differindex 710dba5..4eef303 100644 --- a/tests/data/acpi/virt/PPTT.acpihmatvirt +++ b/tests/data/acpi/virt/PPTT.acpihmatvirt diff --git a/tests/data/acpi/virt/PPTT.topology b/tests/data/acpi/virt/PPTT.topology Binary files differnew file mode 100644 index 0000000..3fbcae5 --- /dev/null +++ b/tests/data/acpi/virt/PPTT.topology diff --git a/tests/qapi-schema/meson.build b/tests/qapi-schema/meson.build index 406bc72..9dfe98b 100644 --- a/tests/qapi-schema/meson.build +++ b/tests/qapi-schema/meson.build @@ -277,10 +277,6 @@ if build_docs command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'], capture: true) - # "full_path()" needed here to work around - # https://github.com/mesonbuild/meson/issues/7585 - test('QAPI rST doc', diff, args: ['-u', qapi_doc_ref_nocr[0].full_path(), - qapi_doc_out_nocr[0].full_path()], - depends: [qapi_doc_ref_nocr, qapi_doc_out_nocr], + test('QAPI rST doc', diff, args: ['-u', qapi_doc_ref_nocr[0], qapi_doc_out_nocr[0]], suite: ['qapi-schema', 'qapi-doc']) endif diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 19b5b5a..8608408 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1726,6 +1726,24 @@ static void test_acpi_virt_tcg(void) free_test_data(&data); } +static void test_acpi_virt_tcg_topology(void) +{ + test_data data = { + .machine = "virt", + .variant = ".topology", + .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, + }; + + test_acpi_one("-cpu cortex-a57 " + "-smp sockets=1,clusters=2,cores=2,threads=2", &data); + free_test_data(&data); +} + static void test_acpi_q35_viot(void) { test_data data = { @@ -2063,6 +2081,7 @@ int main(int argc, char *argv[]) qtest_add_func("acpi/virt", test_acpi_virt_tcg); qtest_add_func("acpi/virt/acpihmatvirt", test_acpi_virt_tcg_acpi_hmat); + qtest_add_func("acpi/virt/topology", test_acpi_virt_tcg_topology); 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/pxb", test_acpi_virt_tcg_pxb); diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index afc1d20..7326f68 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -24,6 +24,7 @@ #include "exec/ramblock.h" #include "hw/qdev-core.h" #include "hw/pci/pci.h" +#include "hw/pci/pci_device.h" #include "hw/boards.h" #include "generic_fuzz_configs.h" #include "hw/mem/sparse-mem.h" diff --git a/tests/unit/test-cutils.c b/tests/unit/test-cutils.c index 86caddc..2126b46 100644 --- a/tests/unit/test-cutils.c +++ b/tests/unit/test-cutils.c @@ -2315,6 +2315,14 @@ static void test_qemu_strtosz_invalid(void) g_assert_cmpint(res, ==, 0xbaadf00d); g_assert(endptr == str); + /* No suffixes */ + str = "0x18M"; + endptr = NULL; + err = qemu_strtosz(str, &endptr, &res); + g_assert_cmpint(err, ==, -EINVAL); + g_assert_cmpint(res, ==, 0xbaadf00d); + g_assert(endptr == str); + /* No negative values */ str = "-0"; endptr = NULL; |