tests/qtest: Don't build virtio-serial-test.c if device not present
The virtconsole device might not be present in the QEMU build that is being tested. Signed-off-by: Fabiano Rosas <farosas@suse.de> Message-Id: <20230213210738.9719-5-farosas@suse.de> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
2e0def6d37
commit
b8a310a297
@ -257,10 +257,14 @@ qos_test_ss.add(
|
||||
'virtio-net-test.c',
|
||||
'virtio-rng-test.c',
|
||||
'virtio-scsi-test.c',
|
||||
'virtio-serial-test.c',
|
||||
'virtio-iommu-test.c',
|
||||
'vmxnet3-test.c',
|
||||
)
|
||||
|
||||
if config_all_devices.has_key('CONFIG_VIRTIO_SERIAL')
|
||||
qos_test_ss.add(files('virtio-serial-test.c'))
|
||||
endif
|
||||
|
||||
if config_host.has_key('CONFIG_POSIX')
|
||||
qos_test_ss.add(files('e1000e-test.c'))
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user