2015-10-21 05:01:47 -05:00
|
|
|
check_PROGRAMS = test
|
|
|
|
|
|
|
|
AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
lib_LTLIBRARIES = unit-prefork.la
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -pthread -I$(top_srcdir)
|
|
|
|
|
2015-10-21 05:01:47 -05:00
|
|
|
test_CPPFLAGS = -DTDOC=\"$(top_srcdir)/test/data\"
|
|
|
|
|
|
|
|
test_LDADD = $(CPPUNIT_LIBS)
|
|
|
|
|
2015-10-28 04:34:20 -05:00
|
|
|
test_SOURCES = httpposttest.cpp httpwstest.cpp test.cpp ../LOOLProtocol.cpp
|
2015-10-21 05:01:47 -05:00
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
# unit test modules:
|
|
|
|
unit_prefork_la_SOURCES = \
|
|
|
|
UnitPrefork.cpp
|
|
|
|
unit_prefork_la_LDFLAGS = -module
|
|
|
|
|
2016-04-05 17:04:40 -05:00
|
|
|
jails=${top_builddir}/test/jails
|
|
|
|
systemplate=${top_builddir}/test/systemplate
|
|
|
|
export jails
|
|
|
|
export systemplate
|
|
|
|
|
|
|
|
${systemplate}/system_stamp :
|
|
|
|
rm -rf ${systemplate}
|
|
|
|
${top_srcdir}/loolwsd-systemplate-setup ${systemplate} ${LO_PATH} && touch ${systemplate}/system_stamp
|
|
|
|
|
|
|
|
${jails} :
|
|
|
|
mkdir -p ${jails}
|
|
|
|
|
|
|
|
run_tests : ${systemplate}/system_stamp ${jails}
|
|
|
|
${top_srcdir}/test/run_unit.sh "${LO_PATH}"
|
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
if HAVE_LO_PATH
|
2016-04-05 17:04:40 -05:00
|
|
|
TESTS = run_tests $(top_builddir)/test/test
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -rf ${top_builddir}/test/jails
|
|
|
|
rm -rf ${systemplate}
|
2016-04-05 11:41:10 -05:00
|
|
|
else
|
|
|
|
TESTS = $(top_builddir)/test/test
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST = data/hello.odt data/hello.txt $(test_SOURCES) run_unit.sh
|
|
|
|
|
2015-10-21 05:01:47 -05:00
|
|
|
|