From 1b5c8428b7eb8b2b687191c827d806880d998027 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 30 Sep 2022 09:54:38 -0600 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 (cherry picked from commit ce2717610acff6384b161787591533591fb42228) --- tests/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index c1e6a1b6..8dcd138c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,7 @@ DIST_SUBDIRS = ftests gunit tools +if WITH_TESTS +SUBDIRS = $(DIST_SUBDIRS) +endif INCLUDES = -I$(top_srcdir)/include LDADD = $(top_builddir)/src/.libs/libcgroup.la -- 2.47.2