]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src: add check-symsorting
authorPavel Hrdina <phrdina@redhat.com>
Thu, 25 Jun 2020 15:33:32 +0000 (17:33 +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 4746e06bdf42202b161b21b6299e4f4cb349b19a..74df68a26b9b7031bbdda2cc6f449b8e38e75f61 100644 (file)
@@ -23,8 +23,6 @@
 BUILT_SOURCES =
 DRIVER_SOURCE_FILES =
 STATEFUL_DRIVER_SOURCE_FILES =
-SYM_FILES =
-USED_SYM_FILES =
 augeas_DATA =
 augeastest_DATA =
 if WITH_DTRACE_PROBES
@@ -48,10 +46,6 @@ include secret/Makefile.inc.am
 include storage/Makefile.inc.am
 
 
-check-symsorting:
-       $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/check-symsorting.py \
-               $(srcdir) $(SYM_FILES)
-
 # Keep this list synced with RPC_PROBE_FILES
 PROTOCOL_STRUCTS = \
        $(srcdir)/remote_protocol-structs \
@@ -139,17 +133,12 @@ check-aclperms:
                $(srcdir)/access/viraccessperm.h \
                $(srcdir)/access/viraccessperm.c
 
-check-local: check-protocol check-symsorting \
+check-local: check-protocol \
        check-drivername check-driverimpls check-aclrules \
        check-aclperms check-admin
 .PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
 
 
-# All .syms files should be placed in exactly one of these three lists,
-# depending on whether they are stored in git and/or used in the build.
-SYM_FILES += $(USED_SYM_FILES)
-
-
 check-local: check-augeas
 
 check-augeas: $(augeas_DATA) $(augeastest_DATA)
index d5820bfb5394898efbcba98574874f8948599b56..35a7b0c4ef4ca7b5f3b627bb4af4336f1624a1a8 100644 (file)
@@ -831,3 +831,14 @@ if host_machine.system() == 'linux'
     env: runutf8,
   )
 endif
+
+test(
+  'check-symsorting',
+  python3_prog,
+  args: [
+    check_symsorting_prog.path(),
+    meson.current_source_dir(),
+    files(sym_files, used_sym_files),
+  ],
+  env: runutf8,
+)