]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
make: build/run tests, only with --enable-tests
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sat, 17 Sep 2022 14:05:49 +0000 (19:35 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 15:46:38 +0000 (09:46 -0600)
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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/Makefile.am

index 396d941adfa5cb1d11be2db4aaefcb1c468f17e5..fd4b335425fa412ae9c1284750c88db5f1b1858e 100644 (file)
@@ -1 +1,4 @@
 DIST_SUBDIRS = ftests gunit
+if WITH_TESTS
+SUBDIRS = $(DIST_SUBDIRS)
+endif