diff --git a/src/Makefile.am b/src/Makefile.am index 4746e06bdf..74df68a26b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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) diff --git a/src/meson.build b/src/meson.build index d5820bfb53..35a7b0c4ef 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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, +)