2016-04-06 13:50:55 -05:00
|
|
|
AUTOMAKE_OPTION = serial-tests
|
|
|
|
|
2015-10-21 05:01:47 -05:00
|
|
|
check_PROGRAMS = test
|
2016-05-01 10:57:43 -05:00
|
|
|
bin_PROGRAMS = test
|
2015-10-21 05:01:47 -05:00
|
|
|
|
|
|
|
AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
|
|
|
|
2016-04-14 12:46:32 -05:00
|
|
|
noinst_LTLIBRARIES = \
|
2016-04-18 08:29:17 -05:00
|
|
|
unit-timeout.la unit-prefork.la \
|
|
|
|
unit-storage.la unit-fonts.la \
|
2016-05-01 09:24:31 -05:00
|
|
|
unit-admin.la unit-tilecache.la
|
2016-04-05 11:41:10 -05:00
|
|
|
|
2016-04-14 12:46:32 -05:00
|
|
|
MAGIC_TO_FORCE_SHLIB_CREATION = -rpath /dummy
|
2016-04-28 16:02:45 -05:00
|
|
|
AM_LDFLAGS = -pthread -module $(MAGIC_TO_FORCE_SHLIB_CREATION)
|
2016-04-05 11:41:10 -05:00
|
|
|
AM_CPPFLAGS = -pthread -I$(top_srcdir)
|
|
|
|
|
2016-05-01 11:35:42 -05:00
|
|
|
wsd_sources = \
|
|
|
|
../IoUtil.cpp \
|
|
|
|
../Log.cpp \
|
|
|
|
../LOOLProtocol.cpp \
|
|
|
|
../TileCache.cpp \
|
|
|
|
../MessageQueue.cpp \
|
|
|
|
../Unit.cpp \
|
|
|
|
../Util.cpp
|
|
|
|
|
|
|
|
test_CPPFLAGS = -DTDOC=\"$(top_srcdir)/test/data\" -I$(top_srcdir)
|
|
|
|
test_SOURCES = TileCacheTests.cpp WhiteBoxTests.cpp integration-http-server.cpp \
|
|
|
|
httpwstest.cpp httpcrashtest.cpp test.cpp $(wsd_sources)
|
2016-04-11 12:21:16 -05:00
|
|
|
test_LDADD = $(CPPUNIT_LIBS)
|
2015-10-21 05:01:47 -05:00
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
# unit test modules:
|
2016-04-18 08:29:17 -05:00
|
|
|
unit_admin_la_SOURCES = UnitAdmin.cpp
|
|
|
|
unit_admin_la_CPPFLAGS = -DTDOC=\"$(top_srcdir)/test/data\"
|
2016-04-13 09:10:02 -05:00
|
|
|
unit_fonts_la_SOURCES = UnitFonts.cpp
|
2016-04-08 11:36:08 -05:00
|
|
|
unit_timeout_la_SOURCES = UnitTimeout.cpp
|
2016-04-07 15:59:27 -05:00
|
|
|
unit_prefork_la_SOURCES = UnitPrefork.cpp
|
|
|
|
unit_storage_la_SOURCES = UnitStorage.cpp
|
2016-05-01 09:24:31 -05:00
|
|
|
unit_tilecache_la_SOURCES = UnitTileCache.cpp
|
2016-05-01 10:20:41 -05:00
|
|
|
unit_tilecache_la_CPPFLAGS = -DTDOC=\"$(top_srcdir)/test/data\"
|
2016-04-05 11:41:10 -05:00
|
|
|
|
2016-04-12 01:29:57 -05:00
|
|
|
if HAVE_LO_PATH
|
2016-04-12 01:37:24 -05:00
|
|
|
SYSTEM_STAMP = @SYSTEMPLATE_PATH@/system_stamp
|
2016-04-12 01:29:57 -05:00
|
|
|
else
|
|
|
|
SYSTEM_STAMP =
|
|
|
|
endif
|
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
if HAVE_LO_PATH
|
2016-04-30 12:15:41 -05:00
|
|
|
check-local:
|
|
|
|
./run_unit.sh --log-file test.log --trs-file test.trs
|
2016-05-01 09:24:31 -05:00
|
|
|
TESTS = unit-tilecache.la unit-admin.la unit-timeout.la unit-fonts.la unit-storage.la unit-prefork.la
|
2016-04-05 11:41:10 -05:00
|
|
|
else
|
2016-04-06 13:50:55 -05:00
|
|
|
TESTS = ${top_builddir}/test/test
|
2016-04-05 11:41:10 -05:00
|
|
|
endif
|
|
|
|
|
2016-04-30 12:15:41 -05:00
|
|
|
TEST_EXTENSIONS = .la
|
2016-04-15 10:39:05 -05:00
|
|
|
LA_LOG_DRIVER = ${top_srcdir}/test/run_unit.sh
|
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
EXTRA_DIST = data/hello.odt data/hello.txt $(test_SOURCES) run_unit.sh
|