Summary:
Fix build problems in the open source Makefiles that cause issues when running
`make check`
- The test subdirectory needs to be processed before experimental, since some
tests in experimental/ depend on libfollytestmain from test/
- The stats/test Makefile had an incorrectly copy-and-pasted line for
libgtest_la_SOURCES but didn't actually build a libgtest.la library.
- The test/ Makefile defined thread_id_test but forgot to add it to TESTS so
that it would actually be run as part of "make check"
Reviewed By: Orvid
Differential Revision:
D5249132
fbshipit-source-id:
5a71e1f72a39d5407b843a5876891c67238ec006
MAYBE_INIT = init
endif
-SUBDIRS = . experimental $(MAYBE_INIT) test io/test stats/test
+# Note that the order of SUBDIRS matters.
+# Many subdirectories depend on libfollytest from the test directory,
+# so it must appear before other directories
+SUBDIRS = . test experimental $(MAYBE_INIT) io/test stats/test
ACLOCAL_AMFLAGS = -I m4
CPPFLAGS = -I$(top_srcdir)/test/gtest/googletest/include
ldadd = $(top_builddir)/test/libfollytestmain.la
-libgtest_la_SOURCES = gtest/googletest/src/gtest-all.cc
-
check_PROGRAMS = \
histogram_test
thread_id_test_SOURCES = ThreadIdTest.cpp
thread_id_test_LDADD = libfollytestmain.la
+TESTS += thread_id_test
thread_local_test_SOURCES = ThreadLocalTest.cpp
thread_local_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la