|
@@ -55,13 +55,6 @@ run_unittests_SOURCES += test_datasrc.h test_datasrc.cc
|
|
run_unittests_SOURCES += rbtree_unittest.cc
|
|
run_unittests_SOURCES += rbtree_unittest.cc
|
|
run_unittests_SOURCES += logger_unittest.cc
|
|
run_unittests_SOURCES += logger_unittest.cc
|
|
run_unittests_SOURCES += client_unittest.cc
|
|
run_unittests_SOURCES += client_unittest.cc
|
|
-if !USE_STATIC_LINK
|
|
|
|
-# This test uses dynamically loadable module. It will cause various
|
|
|
|
-# troubles with static link such as "missing" symbols in the static object
|
|
|
|
-# for the module. As a workaround we disable this particualr test
|
|
|
|
-# in this case.
|
|
|
|
-#run_unittests_SOURCES += factory_unittest.cc
|
|
|
|
-endif
|
|
|
|
|
|
|
|
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
|
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
|
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
|
|
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
|
|
@@ -116,6 +109,7 @@ EXTRA_DIST += testdata/diffs.sqlite3
|
|
# directory. Therefore we build it into a separate binary,
|
|
# directory. Therefore we build it into a separate binary,
|
|
# and call that from check-local with B10_FROM_BUILD set.
|
|
# and call that from check-local with B10_FROM_BUILD set.
|
|
# Also, we only want to do this when static building is not used.
|
|
# Also, we only want to do this when static building is not used.
|
|
|
|
+if !USE_STATIC_LINK
|
|
noinst_PROGRAMS+=run_unittests_factory
|
|
noinst_PROGRAMS+=run_unittests_factory
|
|
run_unittests_factory_SOURCES = $(common_sources)
|
|
run_unittests_factory_SOURCES = $(common_sources)
|
|
run_unittests_factory_SOURCES += factory_unittest.cc
|
|
run_unittests_factory_SOURCES += factory_unittest.cc
|
|
@@ -124,3 +118,4 @@ run_unittests_factory_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
|
|
run_unittests_factory_LDADD = $(common_ldadd)
|
|
run_unittests_factory_LDADD = $(common_ldadd)
|
|
check-local:
|
|
check-local:
|
|
B10_FROM_BUILD=${abs_top_builddir} ./run_unittests_factory
|
|
B10_FROM_BUILD=${abs_top_builddir} ./run_unittests_factory
|
|
|
|
+endif
|