]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src: add check-admin-drivername test
authorPavel Hrdina <phrdina@redhat.com>
Thu, 25 Jun 2020 15:49:12 +0000 (17:49 +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>
Makefile.am
configure.ac
src/Makefile.am [deleted file]
src/admin/Makefile.inc.am [deleted file]
src/admin/meson.build
src/meson.build

index 6df2176364a586dcd4794da817a99cc0491f498e..c5809204e6b22f35e72a877ed1f5faf4f3ef058f 100644 (file)
@@ -20,7 +20,7 @@
 # so force it explicitly
 DISTCHECK_CONFIGURE_FLAGS = --enable-werror
 
-SUBDIRS = . src tools docs \
+SUBDIRS = . tools docs \
   tests po examples
 
 XZ_OPT ?= -v -T0
index 7d2fd67aa7776966becb3a4859fc03b27224193c..dd96f271fb05f07a0746cd7d65d827615fa24b7b 100644 (file)
@@ -111,7 +111,7 @@ m4_if(m4_version_compare([2.61a.100],
 AC_CONFIG_FILES([run],
                 [chmod +x,-w run])
 AC_CONFIG_FILES([\
-        Makefile src/Makefile docs/Makefile \
+        Makefile docs/Makefile \
         .color_coded \
         .ycm_extra_conf.py \
         libvirt.pc \
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644 (file)
index 33e3250..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-## Copyright (C) 2005-2018 Red Hat, Inc.
-##
-## This library is free software; you can redistribute it and/or
-## modify it under the terms of the GNU Lesser General Public
-## License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-##
-## This library is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-## Lesser General Public License for more details.
-##
-## You should have received a copy of the GNU Lesser General Public
-## License along with this library.  If not, see
-## <http://www.gnu.org/licenses/>.
-
-# No libraries with the exception of LIBXML should be listed
-# here. List them against the individual XXX_la_CFLAGS targets
-# that actually use them.
-
-include admin/Makefile.inc.am
diff --git a/src/admin/Makefile.inc.am b/src/admin/Makefile.inc.am
deleted file mode 100644 (file)
index 9d6f3c4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# vim: filetype=automake
-
-check-admin-drivername:
-       $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-drivername.py \
-               $(srcdir)/admin/libvirt_admin_public.syms
-
-check-admin: check-admin-drivername
index 5e450bdd6ea7e7f5530e580999bd37e94a4e9d7a..e97974231fc11a41ebd970356ef869823fa911d2 100644 (file)
@@ -52,6 +52,10 @@ admin_client_generated = custom_target(
   capture: true,
 )
 
+libvirt_admin_public_syms = files(
+  'libvirt_admin_public.syms',
+)
+
 libvirt_admin_private_syms = files(
   'libvirt_admin_private.syms',
 )
@@ -59,7 +63,7 @@ libvirt_admin_private_syms = files(
 libvirt_admin_syms = custom_target(
   'libvirt_admin.syms',
   input: [
-    'libvirt_admin_public.syms',
+    libvirt_admin_public_syms,
     libvirt_admin_private_syms,
   ],
   output: 'libvirt_admin.syms',
index 1de114c89c8340031d9e75eef5d64d336dd0dd9b..9f1578d0f51fd84f9a6b35ec2c56414e36d4472c 100644 (file)
@@ -921,6 +921,15 @@ test(
   env: runutf8,
 )
 
+test(
+  'check-admin-drivername',
+  python3_prog,
+  args: [
+    check_drivername_prog.path(), libvirt_admin_public_syms,
+  ],
+  env: runutf8,
+)
+
 test(
   'check-driverimpls',
   python3_prog,