From: Kamalesh Babulal Date: Sat, 17 Sep 2022 14:05:49 +0000 (+0530) Subject: make: build/run tests, only with --enable-tests X-Git-Tag: v3.1.0~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce2717610acff6384b161787591533591fb42228;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 --- 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