]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src: add check-symfile test
authorPavel Hrdina <phrdina@redhat.com>
Mon, 27 Jul 2020 07:09:44 +0000 (09:09 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/Makefile.am
src/meson.build

index 20e89cff1a84c17973ca7b389daca4d06fcf5342..4746e06bdf42202b161b21b6299e4f4cb349b19a 100644 (file)
@@ -48,17 +48,6 @@ include secret/Makefile.inc.am
 include storage/Makefile.inc.am
 
 
-BUILT_SOURCES += $(nodist_conf_DATA)
-
-# .libs/libvirt.so is built by libtool as a side-effect of the Makefile
-# rule for libvirt.la.  However, checking symbols relies on Linux ELF layout
-if WITH_LINUX
-check-symfile: libvirt.syms libvirt.la
-       $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-symfile.py \
-               libvirt.syms .libs/libvirt.so
-else ! WITH_LINUX
-check-symfile:
-endif ! WITH_LINUX
 check-symsorting:
        $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-symsorting.py \
                $(srcdir) $(SYM_FILES)
@@ -150,7 +139,7 @@ check-aclperms:
                $(srcdir)/access/viraccessperm.h \
                $(srcdir)/access/viraccessperm.c
 
-check-local: check-protocol check-symfile check-symsorting \
+check-local: check-protocol check-symsorting \
        check-drivername check-driverimpls check-aclrules \
        check-aclperms check-admin
 .PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
index 93bca01dda66b3ca6bb3efcf2d97e8fbc79f4847..d5820bfb5394898efbcba98574874f8948599b56 100644 (file)
@@ -819,3 +819,15 @@ meson.add_install_script(
   meson_python_prog.path(), python3_prog.path(), meson_install_dirs_prog.path(),
   virt_install_dirs,
 )
+
+
+# Check driver files
+
+if host_machine.system() == 'linux'
+  test(
+    'check-symfile',
+    python3_prog,
+    args: [ check_symfile_prog.path(), libvirt_syms, libvirt_lib ],
+    env: runutf8,
+  )
+endif