+
+
+############################## Tests ##################################
+
+EXTRA_DIST += \
+ tests/test_ExternalTransforms \
+ tests/test_ListingsCaption \
+ tests/regfiles/ExternalTransforms \
+ tests/regfiles/Length \
+ tests/regfiles/ListingsCaption \
+ tests/test_layout \
+ tests/test_Length
+
+TESTS = tests/test_ExternalTransforms tests/test_Length tests/test_ListingsCaption
+
+alltests: check alltests-recursive
+
+alltests-recursive: check_layout
+ @srcdir=$(srcdir) $(srcdir)/tests/test_layout; \
+ if test $$? -eq 0; then \
+ echo -e "====================\nlayout tests passed.\n===================="; \
+ else \
+ echo -e "====================\nlayout tests failed.\n===================="; \
+ fi
+ cd tex2lyx; $(MAKE) alltests-recursive
+
+updatetests:
+ cd tex2lyx; $(MAKE) updatetests
+
+check_PROGRAMS = \
+ check_ExternalTransforms \
+ check_Length \
+ check_ListingsCaption \
+ check_layout
+
+if INSTALL_MACOSX
+ADD_FRAMEWORKS = -framework QtGui -framework QtCore -framework AppKit -framework ApplicationServices
+endif
+
+check_layout_CPPFLAGS = $(AM_CPPFLAGS)
+check_layout_LDADD = support/liblyxsupport.a CiteEnginesList.o $(LIBICONV) $(BOOST_LIBS) @LIBS@ \
+ $(ICONV_LIBS) $(ZLIB_LIBS) $(QT_LIB) $(LIBSHLWAPI)
+check_layout_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_layout_SOURCES = \
+ insets/InsetLayout.cpp \
+ Color.cpp \
+ Counters.cpp \
+ Floating.cpp \
+ FloatList.cpp \
+ FontInfo.cpp \
+ Layout.cpp \
+ LayoutFile.cpp \
+ Lexer.cpp \
+ ModuleList.cpp \
+ Spacing.cpp \
+ TextClass.cpp \
+ support/tests/dummy_functions.cpp \
+ tests/check_layout.cpp \
+ tests/boost.cpp
+
+check_ExternalTransforms_CPPFLAGS = $(AM_CPPFLAGS)
+check_ExternalTransforms_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ \
+ $(ICONV_LIBS) $(ZLIB_LIBS) $(QT_LIB) $(LIBSHLWAPI)
+check_ExternalTransforms_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_ExternalTransforms_SOURCES = \
+ graphics/GraphicsParams.cpp \
+ insets/ExternalTransforms.cpp \
+ Length.cpp \
+ lengthcommon.cpp \
+ support/tests/dummy_functions.cpp \
+ tests/check_ExternalTransforms.cpp \
+ tests/boost.cpp
+
+check_Length_CPPFLAGS = $(AM_CPPFLAGS)
+check_Length_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ \
+ $(ICONV_LIBS) $(ZLIB_LIBS) $(QT_LIB) $(LIBSHLWAPI)
+check_Length_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_Length_SOURCES = \
+ Length.cpp \
+ lengthcommon.cpp \
+ support/tests/dummy_functions.cpp \
+ tests/check_Length.cpp \
+ tests/boost.cpp
+
+check_ListingsCaption_CPPFLAGS = $(AM_CPPFLAGS)
+check_ListingsCaption_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ \
+ $(ICONV_LIBS) $(ZLIB_LIBS) $(QT_LIB) $(LIBSHLWAPI)
+check_ListingsCaption_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_ListingsCaption_SOURCES = \
+ support/tests/dummy_functions.cpp \
+ tests/check_ListingsCaption.cpp \
+ tests/boost.cpp
+
+.PHONY: alltests alltests-recursive updatetests