mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
meson: src: add check-drivername 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
00b914a502
commit
3c581b0e2b
@ -100,25 +100,6 @@ else !WITH_REMOTE
|
|||||||
check-protocol:
|
check-protocol:
|
||||||
endif !WITH_REMOTE
|
endif !WITH_REMOTE
|
||||||
|
|
||||||
DRIVERS = \
|
|
||||||
$(srcdir)/driver-hypervisor.h \
|
|
||||||
$(srcdir)/driver-interface.h \
|
|
||||||
$(srcdir)/driver-network.h \
|
|
||||||
$(srcdir)/driver-nodedev.h \
|
|
||||||
$(srcdir)/driver-nwfilter.h \
|
|
||||||
$(srcdir)/driver-secret.h \
|
|
||||||
$(srcdir)/driver-state.h \
|
|
||||||
$(srcdir)/driver-storage.h \
|
|
||||||
$(srcdir)/driver-stream.h \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
check-drivername:
|
|
||||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-drivername.py \
|
|
||||||
$(DRIVERS) \
|
|
||||||
$(srcdir)/libvirt_public.syms \
|
|
||||||
$(srcdir)/libvirt_qemu.syms \
|
|
||||||
$(srcdir)/libvirt_lxc.syms
|
|
||||||
|
|
||||||
check-driverimpls:
|
check-driverimpls:
|
||||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-driverimpls.py \
|
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-driverimpls.py \
|
||||||
$(DRIVER_SOURCE_FILES)
|
$(DRIVER_SOURCE_FILES)
|
||||||
@ -134,7 +115,7 @@ check-aclperms:
|
|||||||
$(srcdir)/access/viraccessperm.c
|
$(srcdir)/access/viraccessperm.c
|
||||||
|
|
||||||
check-local: check-protocol \
|
check-local: check-protocol \
|
||||||
check-drivername check-driverimpls check-aclrules \
|
check-driverimpls check-aclrules \
|
||||||
check-aclperms check-admin
|
check-aclperms check-admin
|
||||||
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
||||||
|
|
||||||
|
@ -277,6 +277,18 @@ driver_sources = [
|
|||||||
'libvirt-stream.c',
|
'libvirt-stream.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
driver_headers = [
|
||||||
|
'driver-hypervisor.h',
|
||||||
|
'driver-interface.h',
|
||||||
|
'driver-network.h',
|
||||||
|
'driver-nodedev.h',
|
||||||
|
'driver-nwfilter.h',
|
||||||
|
'driver-secret.h',
|
||||||
|
'driver-state.h',
|
||||||
|
'driver-storage.h',
|
||||||
|
'driver-stream.h',
|
||||||
|
]
|
||||||
|
|
||||||
driver_lib = static_library(
|
driver_lib = static_library(
|
||||||
'virt_driver',
|
'virt_driver',
|
||||||
[
|
[
|
||||||
@ -842,3 +854,13 @@ test(
|
|||||||
],
|
],
|
||||||
env: runutf8,
|
env: runutf8,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
test(
|
||||||
|
'check-drivername',
|
||||||
|
python3_prog,
|
||||||
|
args: [
|
||||||
|
check_drivername_prog.path(), files(driver_headers),
|
||||||
|
files('libvirt_public.syms'), libvirt_qemu_syms, libvirt_lxc_syms,
|
||||||
|
],
|
||||||
|
env: runutf8,
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user