From: Kamalesh Babulal Date: Fri, 30 Sep 2022 15:54:38 +0000 (-0600) Subject: make: build/run tests, only with --enable-tests X-Git-Tag: v2.0.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b5c8428b7eb8b2b687191c827d806880d998027;p=thirdparty%2Flibcgroup.git 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) --- 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