mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
meson: src: add check-driverimpls test
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
3c581b0e2b
commit
adf59b27a2
@ -21,7 +21,6 @@
|
||||
# that actually use them.
|
||||
|
||||
BUILT_SOURCES =
|
||||
DRIVER_SOURCE_FILES =
|
||||
STATEFUL_DRIVER_SOURCE_FILES =
|
||||
augeas_DATA =
|
||||
augeastest_DATA =
|
||||
@ -32,7 +31,6 @@ RPC_PROBE_FILES =
|
||||
|
||||
include locking/Makefile.inc.am
|
||||
include admin/Makefile.inc.am
|
||||
include vbox/Makefile.inc.am
|
||||
include qemu/Makefile.inc.am
|
||||
include bhyve/Makefile.inc.am
|
||||
include libxl/Makefile.inc.am
|
||||
@ -100,10 +98,6 @@ else !WITH_REMOTE
|
||||
check-protocol:
|
||||
endif !WITH_REMOTE
|
||||
|
||||
check-driverimpls:
|
||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-driverimpls.py \
|
||||
$(DRIVER_SOURCE_FILES)
|
||||
|
||||
check-aclrules:
|
||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-aclrules.py \
|
||||
$(REMOTE_PROTOCOL) \
|
||||
@ -115,7 +109,7 @@ check-aclperms:
|
||||
$(srcdir)/access/viraccessperm.c
|
||||
|
||||
check-local: check-protocol \
|
||||
check-driverimpls check-aclrules \
|
||||
check-aclrules \
|
||||
check-aclperms check-admin
|
||||
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(BHYVE_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(BHYVE_DRIVER_SOURCES))
|
||||
|
@ -10,6 +10,8 @@ bhyve_sources = files(
|
||||
'bhyve_process.c',
|
||||
)
|
||||
|
||||
driver_source_files += bhyve_sources
|
||||
|
||||
if conf.has('WITH_BHYVE')
|
||||
bhyve_driver_impl = static_library(
|
||||
'virt_driver_bhyve_impl',
|
||||
|
@ -1,5 +1,4 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(INTERFACE_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(INTERFACE_DRIVER_SOURCES))
|
||||
|
@ -10,6 +10,8 @@ if conf.has('WITH_UDEV')
|
||||
interface_driver_sources += 'interface_backend_udev.c'
|
||||
endif
|
||||
|
||||
driver_source_files += files(interface_driver_sources)
|
||||
|
||||
if conf.has('WITH_INTERFACE')
|
||||
virt_modules += {
|
||||
'name': 'virt_driver_interface',
|
||||
|
@ -1,4 +1,3 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(LIBXL_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(LIBXL_DRIVER_SOURCES))
|
||||
|
@ -10,6 +10,8 @@ libxl_driver_sources = [
|
||||
'xen_xm.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(libxl_driver_sources)
|
||||
|
||||
if conf.has('WITH_LIBXL')
|
||||
libxl_driver_imp = static_library(
|
||||
'virt_driver_libxl_impl',
|
||||
|
@ -1,9 +1,5 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += \
|
||||
$(LXC_MONITOR_PROTOCOL_GENERATED) \
|
||||
$(LXC_MONITOR_GENERATED) \
|
||||
$(addprefix $(srcdir)/,$(LXC_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(LXC_MONITOR_PROTOCOL_GENERATED) \
|
||||
$(LXC_MONITOR_GENERATED) \
|
||||
|
@ -40,6 +40,12 @@ lxc_monitor_generated = custom_target(
|
||||
capture: true,
|
||||
)
|
||||
|
||||
driver_source_files += [
|
||||
files(lxc_driver_sources),
|
||||
lxc_monitor_protocol_generated,
|
||||
lxc_monitor_generated,
|
||||
]
|
||||
|
||||
lxc_controller_sources = files(
|
||||
'lxc_conf.c',
|
||||
'lxc_container.c',
|
||||
|
@ -215,6 +215,10 @@ sysconf_files = []
|
||||
# list of directories to create during installation
|
||||
virt_install_dirs = []
|
||||
|
||||
# driver_source_files:
|
||||
# driver source files to check
|
||||
driver_source_files = []
|
||||
|
||||
|
||||
# list subdirectories
|
||||
|
||||
@ -864,3 +868,10 @@ test(
|
||||
],
|
||||
env: runutf8,
|
||||
)
|
||||
|
||||
test(
|
||||
'check-driverimpls',
|
||||
python3_prog,
|
||||
args: [ check_driverimpls_prog.path(), driver_source_files ],
|
||||
env: runutf8,
|
||||
)
|
||||
|
@ -1,5 +1,4 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(NETWORK_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(NETWORK_DRIVER_SOURCES))
|
||||
|
@ -3,6 +3,8 @@ network_driver_sources = [
|
||||
'bridge_driver_platform.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(network_driver_sources)
|
||||
|
||||
network_leases_helper_sources = files(
|
||||
'leaseshelper.c',
|
||||
)
|
||||
|
@ -1,11 +1,5 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_SOURCES)) \
|
||||
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_HAL_SOURCES)) \
|
||||
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_UDEV_SOURCES)) \
|
||||
$(NULL)
|
||||
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_SOURCES)) \
|
||||
$(NULL)
|
||||
|
@ -10,6 +10,8 @@ if conf.has('WITH_UDEV')
|
||||
node_device_driver_sources += 'node_device_udev.c'
|
||||
endif
|
||||
|
||||
driver_source_files += files(node_device_driver_sources)
|
||||
|
||||
if conf.has('WITH_NODE_DEVICES')
|
||||
node_device_driver_impl = static_library(
|
||||
'virt_driver_nodedev_impl',
|
||||
|
@ -1,5 +1,4 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(NWFILTER_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(NWFILTER_DRIVER_SOURCES))
|
||||
|
@ -6,6 +6,8 @@ nwfilter_driver_sources = [
|
||||
'nwfilter_learnipaddr.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(nwfilter_driver_sources)
|
||||
|
||||
if conf.has('WITH_NWFILTER')
|
||||
nwfilter_driver_impl = static_library(
|
||||
'virt_driver_nwfilter_impl',
|
||||
|
@ -1,4 +1,3 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(QEMU_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(QEMU_DRIVER_SOURCES))
|
||||
|
@ -37,6 +37,8 @@ qemu_driver_sources = [
|
||||
'qemu_virtiofs.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(qemu_driver_sources)
|
||||
|
||||
qemu_dtrace_gen_headers = []
|
||||
qemu_dtrace_gen_objects = []
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
|
||||
|
@ -2,6 +2,8 @@ secret_driver_sources = [
|
||||
'secret_driver.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(secret_driver_sources)
|
||||
|
||||
if conf.has('WITH_SECRETS')
|
||||
virt_modules += {
|
||||
'name': 'virt_driver_secret',
|
||||
|
@ -1,5 +1,4 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
|
||||
|
@ -8,6 +8,8 @@ storage_driver_sources = [
|
||||
storage_driver_backend_sources,
|
||||
]
|
||||
|
||||
driver_source_files += files(storage_driver_sources)
|
||||
|
||||
storage_backend_fs_sources = [
|
||||
'storage_backend_fs.c',
|
||||
]
|
||||
|
@ -1,6 +0,0 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(VBOX_DRIVER_SOURCES)) \
|
||||
$(srcdir)/vbox/vbox_tmpl.c \
|
||||
$(NULL)
|
@ -10,6 +10,11 @@ vbox_driver_sources = [
|
||||
'vbox_XPCOMCGlue.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(
|
||||
vbox_driver_sources,
|
||||
'vbox_tmpl.c',
|
||||
)
|
||||
|
||||
if conf.has('WITH_VBOX')
|
||||
vbox_driver_impl = static_library(
|
||||
'virt_driver_vbox_impl',
|
||||
|
@ -1,4 +1,3 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(VZ_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(VZ_DRIVER_SOURCES))
|
||||
|
@ -4,6 +4,8 @@ vz_driver_sources = [
|
||||
'vz_sdk.c',
|
||||
]
|
||||
|
||||
driver_source_files += files(vz_driver_sources)
|
||||
|
||||
if conf.has('WITH_VZ')
|
||||
vz_driver_impl = static_library(
|
||||
'virt_driver_vz_impl',
|
||||
|
Loading…
Reference in New Issue
Block a user