2016-04-06 13:50:55 -05:00
|
|
|
AUTOMAKE_OPTION = serial-tests
|
|
|
|
|
2015-10-21 05:01:47 -05:00
|
|
|
check_PROGRAMS = test
|
|
|
|
|
|
|
|
AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
|
|
|
|
2016-04-14 07:06:09 -05:00
|
|
|
check_LTLIBRARIES = \
|
2016-04-13 09:10:02 -05:00
|
|
|
unit-timeout.la unit-prefork.la \
|
|
|
|
unit-storage.la unit-fonts.la
|
2016-04-05 11:41:10 -05:00
|
|
|
|
|
|
|
AM_CPPFLAGS = -pthread -I$(top_srcdir)
|
|
|
|
|
2015-10-21 05:01:47 -05:00
|
|
|
test_CPPFLAGS = -DTDOC=\"$(top_srcdir)/test/data\"
|
2015-10-28 04:34:20 -05:00
|
|
|
test_SOURCES = httpposttest.cpp httpwstest.cpp test.cpp ../LOOLProtocol.cpp
|
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-13 09:10:02 -05:00
|
|
|
unit_fonts_la_SOURCES = UnitFonts.cpp
|
|
|
|
unit_fonts_la_LDFLAGS = -module
|
2016-04-08 11:36:08 -05:00
|
|
|
unit_timeout_la_SOURCES = UnitTimeout.cpp
|
|
|
|
unit_timeout_la_LDFLAGS = -module
|
2016-04-07 15:59:27 -05:00
|
|
|
unit_prefork_la_SOURCES = UnitPrefork.cpp
|
2016-04-05 11:41:10 -05:00
|
|
|
unit_prefork_la_LDFLAGS = -module
|
2016-04-07 15:59:27 -05:00
|
|
|
unit_storage_la_SOURCES = UnitStorage.cpp
|
|
|
|
unit_storage_la_LDFLAGS = -module
|
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-06 13:50:55 -05:00
|
|
|
${top_builddir}/test/run_unit.sh.log ${top_builddir}/test/run_unit.sh.trs : \
|
2016-04-12 01:29:57 -05:00
|
|
|
$(SYSTEM_STAMP) @JAILS_PATH@ \
|
2016-04-06 13:50:55 -05:00
|
|
|
${top_srcdir}/test/run_unit.sh \
|
2016-04-11 12:21:16 -05:00
|
|
|
${top_builddir}/loolwsd ${top_builddir}/loolforkit \
|
|
|
|
$(wildcard *.la)
|
2016-04-06 13:50:55 -05:00
|
|
|
if ${top_srcdir}/test/run_unit.sh; then \
|
|
|
|
touch ${top_builddir}/test/run_unit.sh.log; \
|
|
|
|
fi
|
2016-04-05 17:04:40 -05:00
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
if HAVE_LO_PATH
|
2016-04-11 12:21:16 -05:00
|
|
|
TESTS = ${top_srcdir}/test/run_unit.sh ${top_srcdir}/test/run_test.sh
|
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
|
|
|
|
|
|
|
|
EXTRA_DIST = data/hello.odt data/hello.txt $(test_SOURCES) run_unit.sh
|