libreoffice-online/loolwsd/test/Makefile.am

49 lines
1.3 KiB
Text
Raw Normal View History

# variables for tests
jails=${top_builddir}/test/jails
systemplate=${top_builddir}/test/systemplate
AUTOMAKE_OPTION = serial-tests
2015-10-21 05:01:47 -05:00
check_PROGRAMS = test
AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
lib_LTLIBRARIES = unit-timeout.la unit-prefork.la unit-storage.la
AM_CPPFLAGS = -pthread -I$(top_srcdir)
2015-10-21 05:01:47 -05:00
test_CPPFLAGS = -DTDOC=\"$(top_srcdir)/test/data\"
test_SOURCES = httpposttest.cpp httpwstest.cpp test.cpp ../LOOLProtocol.cpp
test_LDADD = $(CPPUNIT_LIBS)
2015-10-21 05:01:47 -05:00
# unit test modules:
unit_timeout_la_SOURCES = UnitTimeout.cpp
unit_timeout_la_LDFLAGS = -module
unit_prefork_la_SOURCES = UnitPrefork.cpp
unit_prefork_la_LDFLAGS = -module
unit_storage_la_SOURCES = UnitStorage.cpp
unit_storage_la_LDFLAGS = -module
2016-04-12 01:29:57 -05:00
if HAVE_LO_PATH
SYSTEM_STAMP = ${systemplate}/system_stamp
else
SYSTEM_STAMP =
endif
${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@ \
${top_srcdir}/test/run_unit.sh \
${top_builddir}/loolwsd ${top_builddir}/loolforkit \
$(wildcard *.la)
if ${top_srcdir}/test/run_unit.sh; then \
touch ${top_builddir}/test/run_unit.sh.log; \
fi
if HAVE_LO_PATH
TESTS = ${top_srcdir}/test/run_unit.sh ${top_srcdir}/test/run_test.sh
else
TESTS = ${top_builddir}/test/test
endif
EXTRA_DIST = data/hello.odt data/hello.txt $(test_SOURCES) run_unit.sh