]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Don't build build tests unless requested
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 13 Jul 2011 23:11:43 +0000 (16:11 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 13 Jul 2011 23:12:40 +0000 (16:12 -0700)
Build tests (that check if there are unresolved symbols in libraries)
can slow down the build a lot. We should only enable them when
developers need them.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
configure.ac
src/Makefile.am

index e748d0a520223de9f64e25484224fc81a6018bf3..6a9c458bfd6938fdc814b7c7afb53a0cd0cc3dca 100644 (file)
@@ -341,6 +341,8 @@ AS_IF([test "x$with_gtk2" != "xno"],
                ])])
 AM_CONDITIONAL(WITH_GTK2, [test "x$have_gtk2" != "xno"])
 
+AM_CONDITIONAL(WITH_BUILD_TESTS, test "$WITH_BUILD_TESTS" = "1")
+
 AM_PATH_PYTHON([2.4],
        [], [AC_MSG_FAILURE([Failed to find Python 2.4 or newer])])
 
index 010f54c7b005e83c0829a91ef6757244983ab445..06ae79f477d1652b07b26fc7032a03345ae9f67e 100644 (file)
@@ -176,6 +176,7 @@ testsnaps_SOURCES = test/osd/TestSnaps.cc test/osd/TestOpStat.cc test/osd/Object
 testsnaps_LDADD = librados.la $(LIBGLOBAL_LDA)
 bin_DEBUGPROGRAMS += testsnaps
 
+if WITH_BUILD_TESTS
 test_libcommon_build_SOURCES = test/test_libcommon_build.cc $(libcommon_files)
 test_libcommon_build_LDADD = -lpthread -lm $(CRYPTO_LIBS) $(EXTRALIBS)
 bin_DEBUGPROGRAMS += test_libcommon_build
@@ -196,6 +197,7 @@ test_libceph_build_SOURCES = test/test_libcommon_build.cc $(libcommon_files) \
 test_libceph_build_LDADD = -lexpat -lpthread -lm $(CRYPTO_LIBS) $(EXTRALIBS)
 test_libceph_build_CXXFLAGS = $(AM_CXXFLAGS)
 bin_DEBUGPROGRAMS += test_libceph_build
+endif
 
 if WITH_HADOOPCLIENT
 test_libhadoopcephfs_build_SOURCES = test/test_libcommon_build.cc \