diff mbox series

[nft,v2,3/5] build: add `make check-tree` to check consistency of source tree

Message ID 20231105150955.349966-4-thaller@redhat.com
State New
Headers show
Series add infrastructure for unit tests | expand

Commit Message

Thomas Haller Nov. 5, 2023, 3:08 p.m. UTC
The script "tools/check-tree.sh" performs some consistency checks of the
source tree. Call it from a make target "check-tree".

Note that `make check-tree` is hooked into `make check-local`, which in
turn is hooked into `make check` and `make distcheck`.

Signed-off-by: Thomas Haller <thaller@redhat.com>
---
 Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index 6a0b04641afc..48d138636d2f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -408,6 +408,7 @@  EXTRA_DIST += \
 EXTRA_DIST += \
 	files \
 	tests \
+	tools \
 	$(NULL)
 
 pkgconfigdir = $(libdir)/pkgconfig
@@ -421,6 +422,13 @@  build-all: all $(check_PROGRAMS) $(check_LTLIBRARIES)
 
 ###############################################################################
 
+check-tree:
+	"$(srcdir)/tools/check-tree.sh"
+
+check_local += check-tree
+
+###############################################################################
+
 check-build: build-all
 	cd "$(srcdir)/tests/build/" ; \
 	CC="$(CC)" CFLAGS='-Werror' ./run-tests.sh