2016-06-15 17:46:13 -05:00
|
|
|
# Cap threadpools to 4 threads.
|
|
|
|
export MAX_CONCURRENCY=4
|
2016-04-06 13:50:55 -05:00
|
|
|
AUTOMAKE_OPTION = serial-tests
|
|
|
|
|
2020-01-17 15:18:42 -06:00
|
|
|
# unittest: tests that run a captive loolwsd as part of themselves.
|
|
|
|
check_PROGRAMS = fakesockettest
|
2016-09-30 03:43:04 -05:00
|
|
|
|
2020-01-17 15:18:42 -06:00
|
|
|
noinst_PROGRAMS = fakesockettest unittest
|
2015-10-21 05:01:47 -05:00
|
|
|
|
2019-05-21 22:33:26 -05:00
|
|
|
AM_CXXFLAGS = $(CPPUNIT_CFLAGS) -DTDOC=\"$(abs_top_srcdir)/test/data\" \
|
2017-02-24 13:52:36 -06:00
|
|
|
-I${top_srcdir}/common -I${top_srcdir}/net -I${top_srcdir}/wsd -I${top_srcdir}/kit
|
2015-10-21 05:01:47 -05:00
|
|
|
|
2019-05-27 02:09:49 -05:00
|
|
|
noinst_LTLIBRARIES = \
|
2020-01-17 14:49:38 -06:00
|
|
|
unit-base.la unit-tiletest.la \
|
|
|
|
unit-integration.la unit-httpws.la unit-crash.la \
|
2019-06-20 14:20:26 -05:00
|
|
|
unit-convert.la unit-typing.la unit-copy-paste.la \
|
2020-01-17 14:49:38 -06:00
|
|
|
unit-timeout.la unit-prefork.la unit-storage.la \
|
2019-05-27 02:09:49 -05:00
|
|
|
unit-admin.la unit-tilecache.la \
|
|
|
|
unit-fuzz.la unit-oob.la unit-http.la unit-oauth.la \
|
|
|
|
unit-wopi.la unit-wopi-saveas.la \
|
|
|
|
unit-wopi-ownertermination.la unit-wopi-versionrestore.la \
|
2019-10-29 08:26:27 -05:00
|
|
|
unit-wopi-documentconflict.la unit_wopi_renamefile.la unit_wopi_watermark.la \
|
2019-09-12 16:10:04 -05:00
|
|
|
unit-tiff-load.la \
|
2019-10-08 01:50:05 -05:00
|
|
|
unit-large-paste.la \
|
2019-10-18 02:06:53 -05:00
|
|
|
unit-paste.la \
|
2019-10-21 02:04:12 -05:00
|
|
|
unit-load-torture.la \
|
2019-10-25 01:54:46 -05:00
|
|
|
unit-rendering-options.la \
|
2019-10-28 03:12:25 -05:00
|
|
|
unit-password-protected.la \
|
2019-11-04 01:34:38 -06:00
|
|
|
unit-render-shape.la \
|
2019-11-12 01:47:39 -06:00
|
|
|
unit-each-view.la \
|
2019-11-14 01:40:51 -06:00
|
|
|
unit-session.la \
|
2019-11-18 01:56:35 -06:00
|
|
|
unit-uno-command.la \
|
2019-11-22 02:07:24 -06:00
|
|
|
unit-load.la \
|
2019-12-02 02:11:32 -06:00
|
|
|
unit-cursor.la \
|
2019-12-06 01:51:51 -06:00
|
|
|
unit-calc.la \
|
2019-12-18 14:16:26 -06:00
|
|
|
unit-insert-delete.la \
|
2019-12-20 02:04:17 -06:00
|
|
|
unit-close.la \
|
2020-01-09 01:33:48 -06:00
|
|
|
unit-bad-doc-load.la \
|
2020-01-17 01:50:15 -06:00
|
|
|
unit-hosting.la \
|
2019-05-21 22:33:26 -05:00
|
|
|
unit-wopi-loadencoded.la unit-wopi-temp.la
|
2016-04-05 11:41:10 -05:00
|
|
|
|
2019-05-27 02:09:49 -05:00
|
|
|
MAGIC_TO_FORCE_SHLIB_CREATION = -rpath /dummy
|
|
|
|
AM_LDFLAGS = -pthread -module $(MAGIC_TO_FORCE_SHLIB_CREATION) $(ZLIB_LIBS)
|
2016-09-28 14:07:07 -05:00
|
|
|
|
2018-05-04 11:47:33 -05:00
|
|
|
if ENABLE_SSL
|
|
|
|
AM_LDFLAGS += -lssl -lcrypto
|
|
|
|
endif
|
|
|
|
|
2016-09-28 14:07:07 -05:00
|
|
|
# We work around some of the mess of using the same sources both on
|
|
|
|
# the server side and here in unit tests with conditional compilation
|
|
|
|
# based on BUILDING_TESTS
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -pthread -I$(top_srcdir) -DBUILDING_TESTS
|
2016-04-05 11:41:10 -05:00
|
|
|
|
2016-05-01 11:35:42 -05:00
|
|
|
wsd_sources = \
|
2016-11-12 15:38:13 -06:00
|
|
|
../common/FileUtil.cpp \
|
2016-11-14 07:58:04 -06:00
|
|
|
../common/SigUtil.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
../common/IoUtil.cpp \
|
|
|
|
../common/Log.cpp \
|
|
|
|
../common/Protocol.cpp \
|
|
|
|
../common/Session.cpp \
|
2019-05-03 11:05:52 -05:00
|
|
|
../common/SpookyV2.cpp \
|
2017-03-30 12:14:40 -05:00
|
|
|
../common/Util.cpp \
|
2016-12-10 21:33:45 -06:00
|
|
|
../common/MessageQueue.cpp \
|
2018-11-22 05:03:42 -06:00
|
|
|
../common/Authorization.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
../kit/Kit.cpp \
|
2019-05-03 11:05:52 -05:00
|
|
|
../kit/TestStubs.cpp \
|
2017-08-16 09:38:00 -05:00
|
|
|
../wsd/Auth.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
../wsd/TileCache.cpp \
|
2017-03-15 07:07:17 -05:00
|
|
|
../wsd/TestStubs.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
../common/Unit.cpp \
|
2017-03-02 12:12:52 -06:00
|
|
|
../net/Socket.cpp
|
2016-05-01 11:35:42 -05:00
|
|
|
|
2019-05-27 02:09:49 -05:00
|
|
|
if ENABLE_SSL
|
|
|
|
wsd_sources += ../net/Ssl.cpp
|
|
|
|
endif
|
2019-05-24 04:08:54 -05:00
|
|
|
|
2017-09-19 15:16:44 -05:00
|
|
|
test_base_source = \
|
|
|
|
TileQueueTests.cpp \
|
|
|
|
WhiteBoxTests.cpp \
|
2017-09-16 11:32:20 -05:00
|
|
|
DeltaTests.cpp \
|
2019-05-27 02:09:49 -05:00
|
|
|
$(wsd_sources)
|
2019-05-24 04:08:54 -05:00
|
|
|
|
2020-01-21 05:21:08 -06:00
|
|
|
unittest_CPPFLAGS = -I$(top_srcdir) -DBUILDING_TESTS -DSTANDALONE_CPPUNIT
|
2017-09-19 15:16:44 -05:00
|
|
|
unittest_SOURCES = $(test_base_source) test.cpp
|
2016-09-30 03:43:04 -05:00
|
|
|
unittest_LDADD = $(CPPUNIT_LIBS)
|
|
|
|
|
2018-11-01 04:18:07 -05:00
|
|
|
fakesockettest_SOURCES = fakesockettest.cpp ../net/FakeSocket.cpp
|
|
|
|
fakesockettest_LDADD = $(CPPUNIT_LIBS)
|
|
|
|
|
2020-01-17 14:49:38 -06:00
|
|
|
# old-style unit tests - bootstrapped via UnitClient
|
|
|
|
unit_base_la_SOURCES = UnitClient.cpp ${test_base_source}
|
|
|
|
unit_base_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_tiletest_la_SOURCES = UnitClient.cpp TileCacheTests.cpp
|
|
|
|
unit_tiletest_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_integration_la_SOURCES = UnitClient.cpp integration-http-server.cpp
|
|
|
|
unit_integration_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_httpws_la_SOURCES = UnitClient.cpp httpwstest.cpp
|
|
|
|
unit_httpws_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_crash_la_SOURCES = UnitClient.cpp httpcrashtest.cpp
|
|
|
|
unit_crash_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
# unit test modules:
|
2019-05-27 02:09:49 -05:00
|
|
|
unit_oob_la_SOURCES = UnitOOB.cpp
|
|
|
|
unit_http_la_SOURCES = UnitHTTP.cpp
|
2019-11-17 07:46:19 -06:00
|
|
|
unit_http_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-05-27 02:09:49 -05:00
|
|
|
unit_fuzz_la_SOURCES = UnitFuzz.cpp
|
|
|
|
unit_admin_la_SOURCES = UnitAdmin.cpp
|
|
|
|
unit_admin_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_typing_la_SOURCES = UnitTyping.cpp
|
|
|
|
unit_typing_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-08-14 02:05:23 -05:00
|
|
|
unit_copy_paste_la_SOURCES = UnitCopyPaste.cpp
|
2019-06-20 14:20:26 -05:00
|
|
|
unit_copy_paste_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-05-27 02:09:49 -05:00
|
|
|
unit_convert_la_SOURCES = UnitConvert.cpp
|
|
|
|
unit_timeout_la_SOURCES = UnitTimeout.cpp
|
|
|
|
unit_prefork_la_SOURCES = UnitPrefork.cpp
|
|
|
|
unit_storage_la_SOURCES = UnitStorage.cpp
|
|
|
|
unit_tilecache_la_SOURCES = UnitTileCache.cpp
|
|
|
|
unit_oauth_la_SOURCES = UnitOAuth.cpp
|
|
|
|
unit_oauth_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_wopi_la_SOURCES = UnitWOPI.cpp
|
|
|
|
unit_wopi_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_wopi_saveas_la_SOURCES = UnitWOPISaveAs.cpp
|
|
|
|
unit_wopi_saveas_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_wopi_ownertermination_la_SOURCES = UnitWopiOwnertermination.cpp
|
|
|
|
unit_wopi_ownertermination_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_wopi_versionrestore_la_SOURCES = UnitWOPIVersionRestore.cpp
|
|
|
|
unit_wopi_versionrestore_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_wopi_documentconflict_la_SOURCES = UnitWOPIDocumentConflict.cpp
|
|
|
|
unit_wopi_documentconflict_la_LIBADD = $(CPPUNIT_LIBS)
|
|
|
|
unit_wopi_renamefile_la_SOURCES = UnitWOPIRenameFile.cpp
|
|
|
|
unit_wopi_renamefile_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-10-29 08:26:27 -05:00
|
|
|
unit_wopi_watermark_la_SOURCES = UnitWOPIWatermark.cpp
|
|
|
|
unit_wopi_watermark_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-05-27 02:09:49 -05:00
|
|
|
unit_wopi_loadencoded_la_SOURCES = UnitWOPILoadEncoded.cpp
|
|
|
|
unit_wopi_loadencoded_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-05-21 22:33:26 -05:00
|
|
|
unit_wopi_temp_la_SOURCES = UnitWOPITemplate.cpp
|
|
|
|
unit_wopi_temp_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-09-12 16:10:04 -05:00
|
|
|
unit_tiff_load_la_SOURCES = UnitTiffLoad.cpp
|
|
|
|
unit_tiff_load_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-10-08 01:50:05 -05:00
|
|
|
unit_large_paste_la_SOURCES = UnitLargePaste.cpp
|
|
|
|
unit_large_paste_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-10-18 02:06:53 -05:00
|
|
|
unit_paste_la_SOURCES = UnitPaste.cpp
|
|
|
|
unit_paste_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-10-21 02:04:12 -05:00
|
|
|
unit_load_torture_la_SOURCES = UnitLoadTorture.cpp
|
|
|
|
unit_load_torture_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-10-25 01:54:46 -05:00
|
|
|
unit_rendering_options_la_SOURCES = UnitRenderingOptions.cpp
|
|
|
|
unit_rendering_options_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-10-28 03:12:25 -05:00
|
|
|
unit_password_protected_la_SOURCES = UnitPasswordProtected.cpp
|
|
|
|
unit_password_protected_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-11-04 01:34:38 -06:00
|
|
|
unit_render_shape_la_SOURCES = UnitRenderShape.cpp
|
|
|
|
unit_render_shape_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-11-12 01:47:39 -06:00
|
|
|
unit_each_view_la_SOURCES = UnitEachView.cpp
|
|
|
|
unit_each_view_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-11-14 01:40:51 -06:00
|
|
|
unit_session_la_SOURCES = UnitSession.cpp
|
|
|
|
unit_session_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-11-18 01:56:35 -06:00
|
|
|
unit_uno_command_la_SOURCES = UnitUNOCommand.cpp
|
|
|
|
unit_uno_command_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-11-25 08:00:38 -06:00
|
|
|
unit_load_la_SOURCES = UnitLoad.cpp
|
2019-11-22 02:07:24 -06:00
|
|
|
unit_load_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-12-02 02:11:32 -06:00
|
|
|
unit_cursor_la_SOURCES = UnitCursor.cpp
|
|
|
|
unit_cursor_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-12-06 01:51:51 -06:00
|
|
|
unit_calc_la_SOURCES = UnitCalc.cpp
|
|
|
|
unit_calc_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-12-18 14:16:26 -06:00
|
|
|
unit_insert_delete_la_SOURCES = UnitInsertDelete.cpp
|
|
|
|
unit_insert_delete_la_LIBADD = $(CPPUNIT_LIBS)
|
2019-12-20 02:04:17 -06:00
|
|
|
unit_close_la_SOURCES = UnitClose.cpp
|
|
|
|
unit_close_la_LIBADD = $(CPPUNIT_LIBS)
|
2020-01-09 01:33:48 -06:00
|
|
|
unit_bad_doc_load_la_SOURCES = UnitBadDocLoad.cpp
|
|
|
|
unit_bad_doc_load_la_LIBADD = $(CPPUNIT_LIBS)
|
2020-01-17 01:50:15 -06:00
|
|
|
unit_hosting_la_SOURCES = UnitHosting.cpp
|
|
|
|
unit_hosting_la_LIBADD = $(CPPUNIT_LIBS)
|
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-10-11 07:26:02 -05:00
|
|
|
check-local:
|
2018-11-01 05:10:47 -05:00
|
|
|
./fakesockettest
|
2017-04-05 08:44:44 -05:00
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
2020-01-17 14:49:38 -06:00
|
|
|
|
2017-01-16 03:15:47 -06:00
|
|
|
# FIXME 2: unit-oob.la fails with symbol undefined:
|
|
|
|
# UnitWSD::testHandleRequest(UnitWSD::TestRequest, UnitHTTPServerRequest&, UnitHTTPServerResponse&) ,
|
2020-01-17 14:49:38 -06:00
|
|
|
TESTS = \
|
|
|
|
unit-base.la unit-tiletest.la \
|
|
|
|
unit-integration.la unit-httpws.la unit-crash.la \
|
|
|
|
\
|
|
|
|
unit-copy-paste.la unit-typing.la unit-convert.la unit-prefork.la unit-tilecache.la unit-timeout.la \
|
2019-06-21 17:56:45 -05:00
|
|
|
unit-oauth.la unit-wopi.la unit-wopi-saveas.la \
|
2019-05-27 02:09:49 -05:00
|
|
|
unit-wopi-ownertermination.la unit-wopi-versionrestore.la \
|
2019-10-29 08:26:27 -05:00
|
|
|
unit-wopi-documentconflict.la unit_wopi_renamefile.la unit_wopi_watermark.la \
|
2019-05-27 02:09:49 -05:00
|
|
|
unit-http.la \
|
2019-09-12 16:10:04 -05:00
|
|
|
unit-tiff-load.la \
|
2020-01-21 03:00:52 -06:00
|
|
|
unit-large-paste.la \
|
2019-10-18 02:06:53 -05:00
|
|
|
unit-paste.la \
|
2019-10-21 02:04:12 -05:00
|
|
|
unit-load-torture.la \
|
2019-10-25 01:54:46 -05:00
|
|
|
unit-rendering-options.la \
|
2019-10-28 03:12:25 -05:00
|
|
|
unit-password-protected.la \
|
2019-11-04 01:34:38 -06:00
|
|
|
unit-render-shape.la \
|
2019-11-12 01:47:39 -06:00
|
|
|
unit-each-view.la \
|
2019-11-14 01:40:51 -06:00
|
|
|
unit-session.la \
|
2019-11-18 01:56:35 -06:00
|
|
|
unit-uno-command.la \
|
2019-11-22 02:07:24 -06:00
|
|
|
unit-load.la \
|
2019-12-02 02:11:32 -06:00
|
|
|
unit-cursor.la \
|
2019-12-06 01:51:51 -06:00
|
|
|
unit-calc.la \
|
2019-12-18 14:16:26 -06:00
|
|
|
unit-insert-delete.la \
|
2019-12-20 02:04:17 -06:00
|
|
|
unit-close.la \
|
2020-01-09 01:33:48 -06:00
|
|
|
unit-bad-doc-load.la \
|
2020-01-17 01:50:15 -06:00
|
|
|
unit-hosting.la \
|
2019-05-21 22:33:26 -05:00
|
|
|
unit-wopi-loadencoded.la unit-wopi-temp.la
|
2020-01-17 14:49:38 -06:00
|
|
|
# TESTS += unit-admin.test
|
|
|
|
# TESTS += unit-storage.test
|
2020-01-20 09:26:54 -06:00
|
|
|
|
2020-01-21 03:00:52 -06:00
|
|
|
# mostly force serialization for now:
|
2020-01-20 09:26:54 -06:00
|
|
|
|
|
|
|
# unit-base.log
|
|
|
|
unit-tiletest.log : unit-base.log
|
|
|
|
unit-integration.log : unit-tiletest.log
|
|
|
|
unit-httpws.log : unit-integration.log
|
|
|
|
unit-crash.log : unit-httpws.log
|
|
|
|
|
|
|
|
unit-copy-paste.log : unit-crash.log
|
|
|
|
unit-typing.log : unit-copy-paste.log
|
|
|
|
unit-convert.log : unit-typing.log
|
|
|
|
unit-prefork.log : unit-convert.log
|
2020-01-21 03:00:52 -06:00
|
|
|
|
|
|
|
# try a couple in parallel
|
2020-01-20 09:26:54 -06:00
|
|
|
unit-tilecache.log : unit-prefork.log
|
2020-01-21 03:00:52 -06:00
|
|
|
unit-timeout.log : unit-prefork.log
|
|
|
|
|
2020-01-20 09:26:54 -06:00
|
|
|
unit-oauth.log : unit-timeout.log
|
|
|
|
unit-wopi.log : unit-oauth.log
|
|
|
|
unit-wopi-saveas.log : unit-wopi.log
|
|
|
|
unit-wopi-ownertermination.log : unit-wopi-saveas.log
|
|
|
|
unit-wopi-versionrestore.log : unit-wopi-ownertermination.log
|
|
|
|
unit-wopi-documentconflict.log : unit-wopi-versionrestore.log
|
|
|
|
unit_wopi_renamefile.log : unit-wopi-documentconflict.log
|
|
|
|
unit_wopi_watermark.log : unit_wopi_renamefile.log
|
2020-01-21 03:00:52 -06:00
|
|
|
|
2020-01-20 09:26:54 -06:00
|
|
|
unit-http.log : unit_wopi_watermark.log
|
2020-01-21 03:00:52 -06:00
|
|
|
unit-tiff-load.log : unit_wopi_watermark.log
|
|
|
|
|
|
|
|
unit-large-paste.log : unit-tiff-load.log
|
|
|
|
unit-paste.log : unit-large-paste.log
|
2020-01-20 09:26:54 -06:00
|
|
|
unit-load-torture.log : unit-paste.log
|
|
|
|
unit-rendering-options.log : unit-load-torture.log
|
|
|
|
unit-password-protected.log : unit-rendering-options.log
|
2020-01-21 03:00:52 -06:00
|
|
|
|
2020-01-20 09:26:54 -06:00
|
|
|
unit-render-shape.log : unit-password-protected.log
|
2020-01-21 03:00:52 -06:00
|
|
|
unit-each-view.log : unit-password-protected.log
|
|
|
|
unit-session.log : unit-password-protected.log
|
|
|
|
unit-uno-command.log : unit-password-protected.log
|
|
|
|
|
2020-01-20 09:26:54 -06:00
|
|
|
unit-load.log : unit-uno-command.log
|
|
|
|
unit-cursor.log : unit-load.log
|
|
|
|
unit-calc.log : unit-cursor.log
|
|
|
|
unit-insert-delete.log : unit-calc.log
|
|
|
|
unit-close.log : unit-insert-delete.log
|
|
|
|
unit-bad-doc-load.log : unit-close.log
|
|
|
|
unit-hosting.log : unit-bad-doc-load.log
|
|
|
|
unit-wopi-loadencoded.log : unit-hosting.log
|
|
|
|
unit-wopi-temp.log : unit-wopi-loadencoded.log
|
|
|
|
|
2020-01-21 03:00:52 -06:00
|
|
|
# end forced serialization
|
2020-01-20 09:26:54 -06:00
|
|
|
|
2016-04-05 11:41:10 -05:00
|
|
|
endif
|
|
|
|
|
2019-05-27 02:09:49 -05:00
|
|
|
TEST_EXTENSIONS = .la
|
|
|
|
LA_LOG_DRIVER = ${top_srcdir}/test/run_unit.sh
|
2016-04-15 10:39:05 -05:00
|
|
|
|
2018-03-07 06:48:56 -06:00
|
|
|
EXTRA_DIST = data/delta-text.png data/delta-text2.png data/hello.odt data/hello.txt $(test_SOURCES) $(unittest_SOURCES) run_unit.sh
|
2016-05-12 17:40:59 -05:00
|
|
|
|
|
|
|
check_valgrind: all
|
2017-04-05 08:44:44 -05:00
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
2016-05-12 17:40:59 -05:00
|
|
|
./run_unit.sh --log-file test.log --trs-file test.trs --valgrind
|
|
|
|
|
2016-09-30 03:43:04 -05:00
|
|
|
# run unittest during the normal build
|
|
|
|
all-local: unittest
|
|
|
|
@echo
|
|
|
|
@echo "Running build-time unit tests. For more thorough testing, please run 'make check'."
|
|
|
|
@echo
|
2017-04-05 08:44:44 -05:00
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
2019-09-05 08:08:02 -05:00
|
|
|
@UNITTEST=1 ${top_builddir}/test/unittest
|