diff mbox series

[nft,3/6] build: add `make check-tests-build` to add build test

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

Commit Message

Thomas Haller Nov. 3, 2023, 11:05 a.m. UTC
Call "./tests/build/run-tests.sh" from a new make target
"check-tests-build". This script performs the build check.

As this script takes a rather long time, it's not hooked with
"check-local", and consequently not run by `make check`. Instead, it is
a dependency of `make check-more`.

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 93bd47970077..f39d6cdd0ca3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -421,6 +421,14 @@  build-all: all $(check_PROGRAMS) $(check_LTLIBRARIES)
 
 ###############################################################################
 
+check-tests-build: build-all
+	cd "$(srcdir)/tests/build/" ; \
+	CC="$(CC)" CFLAGS='-Werror' ./run-tests.sh
+
+check_more += check-tests-build
+
+###############################################################################
+
 check-local: build-all $(check_local)
 
 .PHONY: check-local $(check_local)