2021-02-11 13:48:52 +03:00
|
|
|
slow_qtests = {
|
|
|
|
'ahci-test' : 60,
|
|
|
|
'bios-tables-test' : 120,
|
|
|
|
'boot-serial-test' : 60,
|
|
|
|
'migration-test' : 150,
|
|
|
|
'npcm7xx_pwm-test': 150,
|
|
|
|
'prom-env-test' : 60,
|
|
|
|
'pxe-test' : 60,
|
|
|
|
'qos-test' : 60,
|
|
|
|
'qom-test' : 300,
|
|
|
|
'test-hmp' : 120,
|
|
|
|
}
|
|
|
|
|
2022-04-14 16:01:27 +03:00
|
|
|
qtests_generic = [
|
2020-08-04 21:00:40 +03:00
|
|
|
'cdrom-test',
|
|
|
|
'device-introspect-test',
|
|
|
|
'machine-none-test',
|
|
|
|
'qmp-test',
|
|
|
|
'qmp-cmd-test',
|
|
|
|
'qom-test',
|
|
|
|
'test-hmp',
|
|
|
|
'qos-test',
|
2022-08-05 14:55:29 +03:00
|
|
|
'readconfig-test',
|
2023-01-18 15:04:05 +03:00
|
|
|
'netdev-socket',
|
2020-08-04 21:00:40 +03:00
|
|
|
]
|
2022-10-20 15:53:10 +03:00
|
|
|
if enable_modules
|
2020-08-04 21:00:40 +03:00
|
|
|
qtests_generic += [ 'modules-test' ]
|
|
|
|
endif
|
|
|
|
|
|
|
|
qtests_pci = \
|
|
|
|
(config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_IVSHMEM_DEVICE') ? ['ivshmem-test'] : [])
|
|
|
|
|
2022-04-29 17:40:40 +03:00
|
|
|
qtests_cxl = \
|
|
|
|
(config_all_devices.has_key('CONFIG_CXL') ? ['cxl-test'] : [])
|
|
|
|
|
2023-05-11 15:43:06 +03:00
|
|
|
# FIXME: Get rid of get_option('default_devices') here and check
|
|
|
|
# for the availability of the default NICs in the tests
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter = \
|
2023-05-11 15:43:06 +03:00
|
|
|
(get_option('default_devices') and slirp.found() ? ['test-netfilter'] : []) + \
|
2023-08-30 12:39:45 +03:00
|
|
|
(get_option('default_devices') and targetos != 'windows' ? ['test-filter-mirror'] : []) + \
|
|
|
|
(get_option('default_devices') and targetos != 'windows' ? ['test-filter-redirector'] : [])
|
2022-09-25 14:30:07 +03:00
|
|
|
|
2020-08-04 21:00:40 +03:00
|
|
|
qtests_i386 = \
|
2022-09-25 14:30:07 +03:00
|
|
|
(slirp.found() ? ['pxe-test'] : []) + \
|
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(have_tools ? ['ahci-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_SGA') ? ['boot-serial-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_ISA_IPMI_KCS') ? ['ipmi-kcs-test'] : []) + \
|
2023-08-30 12:39:45 +03:00
|
|
|
(targetos == 'linux' and \
|
2023-05-24 11:10:24 +03:00
|
|
|
config_all_devices.has_key('CONFIG_ISA_IPMI_BT') and
|
|
|
|
config_all_devices.has_key('CONFIG_IPMI_EXTERN') ? ['ipmi-bt-test'] : []) + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_WDT_IB700') ? ['wdt_ib700-test'] : []) + \
|
2021-01-27 17:59:27 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_PVPANIC_ISA') ? ['pvpanic-test'] : []) + \
|
2021-01-27 17:59:30 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_PVPANIC_PCI') ? ['pvpanic-pci-test'] : []) + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_HDA') ? ['intel-hda-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_I82801B11') ? ['i82801b11-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_IOH3420') ? ['ioh3420-test'] : []) + \
|
2021-03-19 11:44:42 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_LPC_ICH9') ? ['lpc-ich9-test'] : []) + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_USB_UHCI') ? ['usb-hcd-uhci-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_USB_UHCI') and \
|
|
|
|
config_all_devices.has_key('CONFIG_USB_EHCI') ? ['usb-hcd-ehci-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_USB_XHCI_NEC') ? ['usb-hcd-xhci-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_TPM_CRB') ? ['tpm-crb-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_TPM_CRB') ? ['tpm-crb-swtpm-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_TPM_TIS_ISA') ? ['tpm-tis-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_TPM_TIS_ISA') ? ['tpm-tis-swtpm-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_RTL8139_PCI') ? ['rtl8139-test'] : []) + \
|
2021-03-10 21:31:22 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_E1000E_PCI_EXPRESS') ? ['fuzz-e1000e-test'] : []) + \
|
2022-04-14 16:01:27 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_MEGASAS_SCSI_PCI') ? ['fuzz-megasas-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_LSI_SCSI_PCI') ? ['fuzz-lsi53c895a-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_VIRTIO_SCSI') ? ['fuzz-virtio-scsi-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_SB16') ? ['fuzz-sb16-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_SDHCI_PCI') ? ['fuzz-sdcard-test'] : []) + \
|
2021-04-07 22:58:01 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_ESP_PCI') ? ['am53c974-test'] : []) + \
|
2023-08-30 12:39:45 +03:00
|
|
|
(targetos != 'windows' and \
|
2022-08-24 12:39:56 +03:00
|
|
|
config_all_devices.has_key('CONFIG_ACPI_ERST') ? ['erst-test'] : []) + \
|
2023-02-08 22:46:51 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_PCIE_PORT') and \
|
|
|
|
config_all_devices.has_key('CONFIG_VIRTIO_NET') and \
|
2021-12-08 16:03:48 +03:00
|
|
|
config_all_devices.has_key('CONFIG_Q35') and \
|
|
|
|
config_all_devices.has_key('CONFIG_VIRTIO_PCI') and \
|
|
|
|
slirp.found() ? ['virtio-net-failover'] : []) + \
|
2023-02-08 22:47:00 +03:00
|
|
|
(unpack_edk2_blobs and \
|
|
|
|
config_all_devices.has_key('CONFIG_HPET') and \
|
|
|
|
config_all_devices.has_key('CONFIG_PARALLEL') ? ['bios-tables-test'] : []) + \
|
2020-08-04 21:00:40 +03:00
|
|
|
qtests_pci + \
|
2022-04-29 17:40:40 +03:00
|
|
|
qtests_cxl + \
|
2020-08-04 21:00:40 +03:00
|
|
|
['fdc-test',
|
|
|
|
'ide-test',
|
|
|
|
'hd-geo-test',
|
|
|
|
'boot-order-test',
|
|
|
|
'rtc-test',
|
|
|
|
'i440fx-test',
|
|
|
|
'fw_cfg-test',
|
|
|
|
'device-plug-test',
|
|
|
|
'drive_del-test',
|
|
|
|
'tco-test',
|
|
|
|
'cpu-plug-test',
|
|
|
|
'q35-test',
|
|
|
|
'vmgenid-test',
|
|
|
|
'migration-test',
|
|
|
|
'test-x86-cpuid-compat',
|
2022-09-25 14:30:07 +03:00
|
|
|
'numa-test'
|
2021-12-20 13:30:25 +03:00
|
|
|
]
|
2020-08-04 21:00:40 +03:00
|
|
|
|
2023-06-06 14:56:44 +03:00
|
|
|
if dbus_display
|
2021-10-07 00:08:15 +03:00
|
|
|
qtests_i386 += ['dbus-display-test']
|
|
|
|
endif
|
|
|
|
|
2020-08-04 21:00:40 +03:00
|
|
|
dbus_daemon = find_program('dbus-daemon', required: false)
|
2022-04-20 18:33:44 +03:00
|
|
|
if dbus_daemon.found() and gdbus_codegen.found()
|
2020-08-04 21:00:40 +03:00
|
|
|
# Temporarily disabled due to Patchew failures:
|
|
|
|
#qtests_i386 += ['dbus-vmstate-test']
|
|
|
|
dbus_vmstate1 = custom_target('dbus-vmstate description',
|
|
|
|
output: ['dbus-vmstate1.h', 'dbus-vmstate1.c'],
|
2022-01-13 19:21:48 +03:00
|
|
|
input: meson.project_source_root() / 'backends/dbus-vmstate1.xml',
|
2022-04-20 18:33:44 +03:00
|
|
|
command: [gdbus_codegen, '@INPUT@',
|
2020-08-04 21:00:40 +03:00
|
|
|
'--interface-prefix', 'org.qemu',
|
|
|
|
'--generate-c-code', '@BASENAME@']).to_list()
|
|
|
|
else
|
|
|
|
dbus_vmstate1 = []
|
|
|
|
endif
|
|
|
|
|
|
|
|
qtests_x86_64 = qtests_i386
|
|
|
|
|
2021-12-20 13:30:25 +03:00
|
|
|
qtests_alpha = ['boot-serial-test'] + \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : [])
|
|
|
|
|
|
|
|
qtests_avr = [ 'boot-serial-test' ]
|
|
|
|
|
2021-12-20 13:30:25 +03:00
|
|
|
qtests_hppa = ['boot-serial-test'] + \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : [])
|
|
|
|
|
2021-12-20 13:30:25 +03:00
|
|
|
qtests_m68k = ['boot-serial-test'] + \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter
|
2021-12-20 13:30:25 +03:00
|
|
|
|
|
|
|
qtests_microblaze = ['boot-serial-test'] + \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter
|
2021-12-20 13:30:25 +03:00
|
|
|
|
2020-08-04 21:00:40 +03:00
|
|
|
qtests_microblazeel = qtests_microblaze
|
|
|
|
|
|
|
|
qtests_mips = \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : [])
|
|
|
|
|
2022-04-14 14:46:55 +03:00
|
|
|
qtests_mipsel = qtests_mips
|
|
|
|
qtests_mips64 = qtests_mips
|
|
|
|
qtests_mips64el = qtests_mips
|
2020-08-04 21:00:40 +03:00
|
|
|
|
|
|
|
qtests_ppc = \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : []) + \
|
2023-08-30 12:53:47 +03:00
|
|
|
(config_all.has_key('CONFIG_TCG') ? ['prom-env-test'] : []) + \
|
|
|
|
(config_all.has_key('CONFIG_TCG') ? ['boot-serial-test'] : []) + \
|
2022-03-14 17:57:17 +03:00
|
|
|
['boot-order-test']
|
2020-08-04 21:00:40 +03:00
|
|
|
|
|
|
|
qtests_ppc64 = \
|
2021-12-01 13:43:44 +03:00
|
|
|
qtests_ppc + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_PSERIES') ? ['device-plug-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_POWERNV') ? ['pnv-xscom-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_PSERIES') ? ['rtas-test'] : []) + \
|
2021-12-20 13:30:25 +03:00
|
|
|
(slirp.found() ? ['pxe-test'] : []) + \
|
2020-08-04 21:00:40 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_USB_UHCI') ? ['usb-hcd-uhci-test'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_USB_XHCI_NEC') ? ['usb-hcd-xhci-test'] : []) + \
|
2020-10-07 13:43:03 +03:00
|
|
|
qtests_pci + ['migration-test', 'numa-test', 'cpu-plug-test', 'drive_del-test']
|
2020-08-04 21:00:40 +03:00
|
|
|
|
|
|
|
qtests_sh4 = (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : [])
|
|
|
|
qtests_sh4eb = (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : [])
|
|
|
|
|
2021-12-20 13:30:25 +03:00
|
|
|
qtests_sparc = ['prom-env-test', 'm48t59-test', 'boot-serial-test'] + \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter
|
2020-08-04 21:00:40 +03:00
|
|
|
|
|
|
|
qtests_sparc64 = \
|
|
|
|
(config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \
|
2022-09-25 14:30:07 +03:00
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
['prom-env-test', 'boot-serial-test']
|
|
|
|
|
2020-10-24 00:06:35 +03:00
|
|
|
qtests_npcm7xx = \
|
2021-01-08 22:09:42 +03:00
|
|
|
['npcm7xx_adc-test',
|
|
|
|
'npcm7xx_gpio-test',
|
2021-01-08 22:09:44 +03:00
|
|
|
'npcm7xx_pwm-test',
|
2020-10-24 00:06:37 +03:00
|
|
|
'npcm7xx_rng-test',
|
2022-02-25 20:44:51 +03:00
|
|
|
'npcm7xx_sdhci-test',
|
2021-02-11 01:04:25 +03:00
|
|
|
'npcm7xx_smbus-test',
|
2020-10-24 00:06:35 +03:00
|
|
|
'npcm7xx_timer-test',
|
2021-02-19 00:24:53 +03:00
|
|
|
'npcm7xx_watchdog_timer-test'] + \
|
|
|
|
(slirp.found() ? ['npcm7xx_emc-test'] : [])
|
2021-05-01 11:03:51 +03:00
|
|
|
qtests_aspeed = \
|
2021-05-01 11:03:52 +03:00
|
|
|
['aspeed_hace-test',
|
2022-05-02 18:03:04 +03:00
|
|
|
'aspeed_smc-test',
|
|
|
|
'aspeed_gpio-test']
|
2020-08-04 21:00:40 +03:00
|
|
|
qtests_arm = \
|
2021-02-19 17:46:17 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_MPS2') ? ['sse-timer-test'] : []) + \
|
2021-01-28 14:41:25 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_CMSDK_APB_DUALTIMER') ? ['cmsdk-apb-dualtimer-test'] : []) + \
|
2021-01-28 14:41:23 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_CMSDK_APB_TIMER') ? ['cmsdk-apb-timer-test'] : []) + \
|
2021-01-28 14:41:24 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_CMSDK_APB_WATCHDOG') ? ['cmsdk-apb-watchdog-test'] : []) + \
|
2023-05-24 11:06:00 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_PFLASH_CFI02') and
|
|
|
|
config_all_devices.has_key('CONFIG_MUSICPAL') ? ['pflash-cfi02-test'] : []) + \
|
2021-05-01 11:03:51 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_ASPEED_SOC') ? qtests_aspeed : []) + \
|
2020-10-24 00:06:32 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_NPCM7XX') ? qtests_npcm7xx : []) + \
|
2023-02-08 22:46:58 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_GENERIC_LOADER') ? ['hexloader-test'] : []) + \
|
2023-03-31 20:30:51 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_TPM_TIS_I2C') ? ['tpm-tis-i2c-test'] : []) + \
|
2023-05-24 11:06:00 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_VEXPRESS') ? ['test-arm-mptimer'] : []) + \
|
|
|
|
(config_all_devices.has_key('CONFIG_MICROBIT') ? ['microbit-test'] : []) + \
|
2020-08-04 21:00:40 +03:00
|
|
|
['arm-cpu-features',
|
2023-02-08 22:46:58 +03:00
|
|
|
'boot-serial-test']
|
2020-08-04 21:00:40 +03:00
|
|
|
|
|
|
|
# TODO: once aarch64 TCG is fixed on ARM 32 bit host, make bios-tables-test unconditional
|
|
|
|
qtests_aarch64 = \
|
2021-09-23 13:55:29 +03:00
|
|
|
(cpu != 'arm' and unpack_edk2_blobs ? ['bios-tables-test'] : []) + \
|
2023-02-13 23:29:23 +03:00
|
|
|
(config_all.has_key('CONFIG_TCG') and config_all_devices.has_key('CONFIG_TPM_TIS_SYSBUS') ? \
|
|
|
|
['tpm-tis-device-test', 'tpm-tis-device-swtpm-test'] : []) + \
|
2021-12-01 13:43:45 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_XLNX_ZYNQMP_ARM') ? ['xlnx-can-test', 'fuzz-xlnx-dp-test'] : []) + \
|
2023-06-06 12:19:31 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_XLNX_VERSAL') ? ['xlnx-canfd-test'] : []) + \
|
2023-01-13 17:04:13 +03:00
|
|
|
(config_all_devices.has_key('CONFIG_RASPI') ? ['bcm2835-dma-test'] : []) + \
|
2023-04-26 21:00:12 +03:00
|
|
|
(config_all.has_key('CONFIG_TCG') and \
|
|
|
|
config_all_devices.has_key('CONFIG_TPM_TIS_I2C') ? ['tpm-tis-i2c-test'] : []) + \
|
2020-10-01 09:17:17 +03:00
|
|
|
['arm-cpu-features',
|
|
|
|
'numa-test',
|
2020-08-04 21:00:40 +03:00
|
|
|
'boot-serial-test',
|
2023-01-13 17:04:13 +03:00
|
|
|
'migration-test']
|
2020-08-04 21:00:40 +03:00
|
|
|
|
|
|
|
qtests_s390x = \
|
2023-05-11 15:43:06 +03:00
|
|
|
qtests_filter + \
|
2020-08-04 21:00:40 +03:00
|
|
|
['boot-serial-test',
|
|
|
|
'drive_del-test',
|
|
|
|
'device-plug-test',
|
|
|
|
'virtio-ccw-test',
|
|
|
|
'cpu-plug-test',
|
|
|
|
'migration-test']
|
|
|
|
|
2023-06-27 17:12:16 +03:00
|
|
|
qtests_riscv32 = \
|
|
|
|
(config_all_devices.has_key('CONFIG_SIFIVE_E_AON') ? ['sifive-e-aon-watchdog-test'] : [])
|
|
|
|
|
2020-08-04 21:00:40 +03:00
|
|
|
qos_test_ss = ss.source_set()
|
|
|
|
qos_test_ss.add(
|
|
|
|
'ac97-test.c',
|
2021-07-08 20:25:54 +03:00
|
|
|
'adm1272-test.c',
|
2020-08-04 21:00:40 +03:00
|
|
|
'ds1338-test.c',
|
|
|
|
'e1000-test.c',
|
|
|
|
'eepro100-test.c',
|
|
|
|
'es1370-test.c',
|
|
|
|
'ipoctal232-test.c',
|
2022-01-30 12:50:32 +03:00
|
|
|
'lsm303dlhc-mag-test.c',
|
2022-03-07 23:06:03 +03:00
|
|
|
'isl_pmbus_vr-test.c',
|
2021-07-08 20:25:56 +03:00
|
|
|
'max34451-test.c',
|
2020-08-04 21:00:40 +03:00
|
|
|
'megasas-test.c',
|
|
|
|
'ne2000-test.c',
|
|
|
|
'tulip-test.c',
|
|
|
|
'nvme-test.c',
|
|
|
|
'pca9552-test.c',
|
|
|
|
'pci-test.c',
|
|
|
|
'pcnet-test.c',
|
|
|
|
'sdhci-test.c',
|
|
|
|
'spapr-phb-test.c',
|
|
|
|
'tmp105-test.c',
|
2020-12-10 14:11:03 +03:00
|
|
|
'emc141x-test.c',
|
2020-08-04 21:00:40 +03:00
|
|
|
'usb-hcd-ohci-test.c',
|
|
|
|
'virtio-test.c',
|
|
|
|
'virtio-blk-test.c',
|
|
|
|
'virtio-net-test.c',
|
|
|
|
'virtio-rng-test.c',
|
|
|
|
'virtio-scsi-test.c',
|
2021-11-27 10:29:10 +03:00
|
|
|
'virtio-iommu-test.c',
|
2020-08-04 21:00:40 +03:00
|
|
|
'vmxnet3-test.c',
|
2023-03-10 09:11:25 +03:00
|
|
|
'igb-test.c',
|
2023-09-06 10:43:51 +03:00
|
|
|
'ufs-test.c',
|
2020-08-04 21:00:40 +03:00
|
|
|
)
|
2023-02-14 00:07:30 +03:00
|
|
|
|
|
|
|
if config_all_devices.has_key('CONFIG_VIRTIO_SERIAL')
|
|
|
|
qos_test_ss.add(files('virtio-serial-test.c'))
|
|
|
|
endif
|
|
|
|
|
2023-08-30 12:39:45 +03:00
|
|
|
if targetos != 'windows'
|
2022-08-24 12:39:54 +03:00
|
|
|
qos_test_ss.add(files('e1000e-test.c'))
|
|
|
|
endif
|
2021-01-07 17:57:18 +03:00
|
|
|
if have_virtfs
|
|
|
|
qos_test_ss.add(files('virtio-9p-test.c'))
|
|
|
|
endif
|
2022-04-20 18:34:06 +03:00
|
|
|
if have_vhost_user
|
|
|
|
qos_test_ss.add(files('vhost-user-test.c'))
|
|
|
|
endif
|
2021-03-22 12:23:25 +03:00
|
|
|
if have_tools and have_vhost_user_blk_server
|
|
|
|
qos_test_ss.add(files('vhost-user-blk-test.c'))
|
|
|
|
endif
|
2020-08-04 21:00:40 +03:00
|
|
|
|
2020-10-06 15:44:00 +03:00
|
|
|
tpmemu_files = ['tpm-emu.c', 'tpm-util.c', 'tpm-tests.c']
|
|
|
|
|
2022-04-26 19:00:42 +03:00
|
|
|
migration_files = [files('migration-helpers.c')]
|
|
|
|
if gnutls.found()
|
|
|
|
migration_files += [files('../unit/crypto-tls-psk-helpers.c'), gnutls]
|
2022-04-26 19:00:43 +03:00
|
|
|
|
|
|
|
if tasn1.found()
|
|
|
|
migration_files += [files('../unit/crypto-tls-x509-helpers.c',
|
|
|
|
'../unit/pkix_asn1_tab.c'), tasn1]
|
|
|
|
endif
|
2022-04-26 19:00:42 +03:00
|
|
|
endif
|
|
|
|
|
2020-10-06 15:44:00 +03:00
|
|
|
qtests = {
|
|
|
|
'bios-tables-test': [io, 'boot-sector.c', 'acpi-utils.c', 'tpm-emu.c'],
|
2020-08-04 21:00:40 +03:00
|
|
|
'cdrom-test': files('boot-sector.c'),
|
|
|
|
'dbus-vmstate-test': files('migration-helpers.c') + dbus_vmstate1,
|
2022-01-28 23:38:07 +03:00
|
|
|
'erst-test': files('erst-test.c'),
|
2020-10-06 15:44:00 +03:00
|
|
|
'ivshmem-test': [rt, '../../contrib/ivshmem-server/ivshmem-server.c'],
|
2022-04-26 19:00:42 +03:00
|
|
|
'migration-test': migration_files,
|
2020-10-06 15:44:00 +03:00
|
|
|
'pxe-test': files('boot-sector.c'),
|
2023-08-30 12:39:45 +03:00
|
|
|
'qos-test': [chardev, io, qos_test_ss.apply(config_targetos, strict: false).sources()],
|
2020-10-06 15:44:00 +03:00
|
|
|
'tpm-crb-swtpm-test': [io, tpmemu_files],
|
|
|
|
'tpm-crb-test': [io, tpmemu_files],
|
|
|
|
'tpm-tis-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'],
|
|
|
|
'tpm-tis-test': [io, tpmemu_files, 'tpm-tis-util.c'],
|
2023-03-31 20:30:51 +03:00
|
|
|
'tpm-tis-i2c-test': [io, tpmemu_files, 'qtest_aspeed.c'],
|
2020-10-06 15:44:00 +03:00
|
|
|
'tpm-tis-device-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'],
|
|
|
|
'tpm-tis-device-test': [io, tpmemu_files, 'tpm-tis-util.c'],
|
2023-07-12 22:07:39 +03:00
|
|
|
'virtio-net-failover': files('migration-helpers.c'),
|
2020-08-04 21:00:40 +03:00
|
|
|
'vmgenid-test': files('boot-sector.c', 'acpi-utils.c'),
|
2023-01-18 15:04:05 +03:00
|
|
|
'netdev-socket': files('netdev-socket.c', '../unit/socket-helpers.c'),
|
2020-08-04 21:00:40 +03:00
|
|
|
}
|
|
|
|
|
2023-03-01 13:44:50 +03:00
|
|
|
if vnc.found()
|
2023-08-28 13:03:05 +03:00
|
|
|
gvnc = dependency('gvnc-1.0', method: 'pkg-config', required: false)
|
2023-03-01 13:44:50 +03:00
|
|
|
if gvnc.found()
|
|
|
|
qtests += {'vnc-display-test': [gvnc]}
|
|
|
|
qtests_generic += [ 'vnc-display-test' ]
|
|
|
|
endif
|
2022-10-06 16:05:13 +03:00
|
|
|
endif
|
|
|
|
|
2021-10-07 00:08:15 +03:00
|
|
|
if dbus_display
|
2022-10-06 16:05:13 +03:00
|
|
|
qtests += {'dbus-display-test': [dbus_display1, gio]}
|
2021-10-07 00:08:15 +03:00
|
|
|
endif
|
|
|
|
|
2020-08-04 21:00:40 +03:00
|
|
|
qtest_executables = {}
|
|
|
|
foreach dir : target_dirs
|
|
|
|
if not dir.endswith('-softmmu')
|
|
|
|
continue
|
|
|
|
endif
|
|
|
|
|
|
|
|
target_base = dir.split('-')[0]
|
2020-09-16 12:00:53 +03:00
|
|
|
qtest_emulator = emulators['qemu-system-' + target_base]
|
2020-10-06 15:44:00 +03:00
|
|
|
target_qtests = get_variable('qtests_' + target_base, []) + qtests_generic
|
2020-08-04 21:00:40 +03:00
|
|
|
|
2021-09-23 13:55:29 +03:00
|
|
|
test_deps = roms
|
2020-08-04 21:00:40 +03:00
|
|
|
qtest_env = environment()
|
2020-09-16 12:00:53 +03:00
|
|
|
if have_tools
|
|
|
|
qtest_env.set('QTEST_QEMU_IMG', './qemu-img')
|
|
|
|
test_deps += [qemu_img]
|
|
|
|
endif
|
2021-02-09 16:59:26 +03:00
|
|
|
qtest_env.set('G_TEST_DBUS_DAEMON', meson.project_source_root() / 'tests/dbus-vmstate-daemon.sh')
|
2020-08-03 18:04:25 +03:00
|
|
|
qtest_env.set('QTEST_QEMU_BINARY', './qemu-system-' + target_base)
|
2021-08-11 12:47:05 +03:00
|
|
|
if have_tools and have_vhost_user_blk_server
|
|
|
|
qtest_env.set('QTEST_QEMU_STORAGE_DAEMON_BINARY', './storage-daemon/qemu-storage-daemon')
|
|
|
|
test_deps += [qsd]
|
|
|
|
endif
|
|
|
|
|
2020-10-06 15:44:00 +03:00
|
|
|
foreach test : target_qtests
|
2020-08-04 21:00:40 +03:00
|
|
|
# Executables are shared across targets, declare them only the first time we
|
|
|
|
# encounter them
|
|
|
|
if not qtest_executables.has_key(test)
|
2020-10-06 15:44:00 +03:00
|
|
|
src = [test + '.c']
|
|
|
|
deps = [qemuutil, qos]
|
|
|
|
if test in qtests
|
|
|
|
# use a sourceset to quickly separate sources and deps
|
|
|
|
test_ss = ss.source_set()
|
|
|
|
test_ss.add(qtests[test])
|
|
|
|
src += test_ss.all_sources()
|
|
|
|
deps += test_ss.all_dependencies()
|
|
|
|
endif
|
2020-08-04 21:00:40 +03:00
|
|
|
qtest_executables += {
|
2020-10-06 15:44:00 +03:00
|
|
|
test: executable(test, src, dependencies: deps)
|
2020-08-04 21:00:40 +03:00
|
|
|
}
|
|
|
|
endif
|
2020-10-19 13:22:43 +03:00
|
|
|
test('qtest-@0@/@1@'.format(target_base, test),
|
2020-08-04 21:00:40 +03:00
|
|
|
qtest_executables[test],
|
2022-01-07 15:00:44 +03:00
|
|
|
depends: [test_deps, qtest_emulator, emulator_modules],
|
2020-08-04 21:00:40 +03:00
|
|
|
env: qtest_env,
|
|
|
|
args: ['--tap', '-k'],
|
|
|
|
protocol: 'tap',
|
2021-02-11 13:48:52 +03:00
|
|
|
timeout: slow_qtests.get(test, 30),
|
|
|
|
priority: slow_qtests.get(test, 30),
|
2020-08-04 21:00:40 +03:00
|
|
|
suite: ['qtest', 'qtest-' + target_base])
|
|
|
|
endforeach
|
|
|
|
endforeach
|