aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-02-17 18:02:30 +0800
committerThomas Huth <thuth@redhat.com>2024-02-23 08:13:52 +0100
commit0b76a1a959ef1ea35f543babfb89baf2a6545c1a (patch)
treef7b003b2ba1ef6f9840d0cfd30b69183eb777895 /tests
parentf3c6376c8475388e5218a9503f0c545ca26492a5 (diff)
downloadqemu-0b76a1a959ef1ea35f543babfb89baf2a6545c1a.zip
qemu-0b76a1a959ef1ea35f543babfb89baf2a6545c1a.tar.gz
qemu-0b76a1a959ef1ea35f543babfb89baf2a6545c1a.tar.bz2
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/qtest/cdrom-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c
index 0945383..5d89e62 100644
--- a/tests/qtest/cdrom-test.c
+++ b/tests/qtest/cdrom-test.c
@@ -271,6 +271,11 @@ int main(int argc, char **argv)
const char *virtmachine[] = { "virt", NULL };
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 {
const char *nonemachine[] = { "none", NULL };
add_cdrom_param_tests(nonemachine);