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@xxxxxxxxxx> --- Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.41.0