From ce2717610acff6384b161787591533591fb42228 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Sat, 17 Sep 2022 19:35:49 +0530 Subject: [PATCH] make: build/run tests, only with --enable-tests Control the building and testing (make check) of the tests using the if/endif WITH_TESTS guard based on the configuration options passed. If the --enable-tests (default on) is passed during ./configure step, the SUBDIRS directories (ftests/gunit) are recused into build and make check are run. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index 396d941a..fd4b3354 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1 +1,4 @@ DIST_SUBDIRS = ftests gunit +if WITH_TESTS +SUBDIRS = $(DIST_SUBDIRS) +endif -- 2.47.3