diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-10-18 15:33:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 15:33:05 +0300 |
commit | 8f1ee072f151a1a553959af27b7ae42cff7b311b (patch) | |
tree | 531487ae0fd9b0aa3d02a0d82844f01e8eb842d4 /Makefile.am | |
parent | 2d2e3a1e1483bb8acf6d669b2e9e096af87d2eea (diff) |
Fix build when CMocka isn't installed (#7129)
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/Makefile.am b/Makefile.am index a754bd26aa..d9da7b8a0b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -137,6 +137,7 @@ LIBNETDATA_FILES = \ libnetdata/inlined.h \ libnetdata/libnetdata.c \ libnetdata/libnetdata.h \ + libnetdata/required_dummies.h \ libnetdata/locks/locks.c \ libnetdata/locks/locks.h \ libnetdata/log/log.c \ @@ -638,21 +639,23 @@ if ENABLE_BACKEND_MONGODB netdata_LDADD += $(OPTIONAL_MONGOC_LIBS) endif -check_PROGRAMS = \ - libnetdata/tests/str2ld_testdriver \ - libnetdata/storage_number/tests/storage_number_testdriver \ - $(NULL) +if ENABLE_UNITTESTS + check_PROGRAMS = \ + libnetdata/tests/str2ld_testdriver \ + libnetdata/storage_number/tests/storage_number_testdriver \ + $(NULL) -TESTS = $(check_PROGRAMS) + TESTS = $(check_PROGRAMS) -libnetdata_tests_str2ld_testdriver_SOURCES = \ - libnetdata/tests/test_str2ld.c \ - $(LIBNETDATA_FILES) \ - $(NULL) -libnetdata_tests_str2ld_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS) + libnetdata_tests_str2ld_testdriver_SOURCES = \ + libnetdata/tests/test_str2ld.c \ + $(LIBNETDATA_FILES) \ + $(NULL) + libnetdata_tests_str2ld_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS) -libnetdata_storage_number_tests_storage_number_testdriver_SOURCES = \ - libnetdata/storage_number/tests/test_storage_number.c \ - $(LIBNETDATA_FILES) \ - $(NULL) -libnetdata_storage_number_tests_storage_number_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS) + libnetdata_storage_number_tests_storage_number_testdriver_SOURCES = \ + libnetdata/storage_number/tests/test_storage_number.c \ + $(LIBNETDATA_FILES) \ + $(NULL) + libnetdata_storage_number_tests_storage_number_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS) +endif |