mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 19:18:23 +00:00
tests/cdrom-test: Add cdrom test for LoongArch virt machine
The cdrom test skips to execute on LoongArch system with command "make check", this patch enables cdrom test for LoongArch virt machine platform. With this patch, cdrom test passes to run on LoongArch virt machine type. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Message-ID: <20240217100230.134042-1-maobibo@loongson.cn> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
@@ -271,6 +271,11 @@ int main(int argc, char **argv)
|
|||||||
const char *virtmachine[] = { "virt", NULL };
|
const char *virtmachine[] = { "virt", NULL };
|
||||||
add_cdrom_param_tests(virtmachine);
|
add_cdrom_param_tests(virtmachine);
|
||||||
}
|
}
|
||||||
|
} else if (g_str_equal(arch, "loongarch64")) {
|
||||||
|
if (qtest_has_device("virtio-blk-pci")) {
|
||||||
|
const char *virtmachine[] = { "virt", NULL };
|
||||||
|
add_cdrom_param_tests(virtmachine);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const char *nonemachine[] = { "none", NULL };
|
const char *nonemachine[] = { "none", NULL };
|
||||||
add_cdrom_param_tests(nonemachine);
|
add_cdrom_param_tests(nonemachine);
|
||||||
|
|||||||
Reference in New Issue
Block a user