+
+
+############################## Tests ##################################
+
+EXTRA_DIST += \
+ tests/test_ExternalTransforms \
+ tests/test_ListingsCaption \
+ tests/test_layout \
+ tests/test_Length \
+ tests/regfiles/ExternalTransforms \
+ tests/regfiles/Length \
+ tests/regfiles/ListingsCaption \
+ tests/dummy_functions.cpp \
+ tests/boost.cpp
+
+TESTS = tests/test_ExternalTransforms tests/test_ListingsCaption \
+ tests/test_layout tests/test_Length
+
+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
+
+TESTS_LIBS = support/liblyxsupport.a \
+ $(LIBICONV) $(BOOST_LIBS) @LIBS@ \
+ $(ICONV_LIBS) $(ZLIB_LIBS) $(QT_LIB) $(LIBSHLWAPI)
+
+check_layout_CPPFLAGS = $(AM_CPPFLAGS)
+check_layout_LDADD = $(check_layout_LYX_OBJS) $(TESTS_LIBS)
+check_layout_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_layout_SOURCES = \
+ tests/check_layout.cpp
+check_layout_LYX_OBJS = \
+ insets/InsetLayout.o \
+ CiteEnginesList.o \
+ Color.o \
+ Counters.o \
+ Floating.o \
+ FloatList.o \
+ FontInfo.o \
+ Layout.o \
+ LayoutFile.o \
+ Lexer.o \
+ ModuleList.o \
+ Spacing.o \
+ TextClass.o \
+ tests/dummy_functions.o \
+ tests/boost.o
+
+check_ExternalTransforms_CPPFLAGS = $(AM_CPPFLAGS)
+check_ExternalTransforms_LDADD = $(check_ExternalTransforms_LYX_OBJS) $(TESTS_LIBS)
+check_ExternalTransforms_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_ExternalTransforms_SOURCES = \
+ tests/check_ExternalTransforms.cpp
+check_ExternalTransforms_LYX_OBJS = \
+ tests/dummy_functions.o \
+ tests/boost.o \
+ graphics/GraphicsParams.o \
+ insets/ExternalTransforms.o \
+ Length.o \
+ lengthcommon.o
+
+check_Length_CPPFLAGS = $(AM_CPPFLAGS)
+check_Length_LDADD = $(check_Length_LYX_OBJS) $(TESTS_LIBS)
+check_Length_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_Length_SOURCES = \
+ tests/check_Length.cpp
+check_Length_LYX_OBJS = \
+ tests/dummy_functions.o \
+ tests/boost.o \
+ Length.o \
+ lengthcommon.o
+
+check_ListingsCaption_CPPFLAGS = $(AM_CPPFLAGS)
+check_ListingsCaption_LDADD = $(check_ListingsCaption_LYX_OBJS) $(TESTS_LIBS)
+check_ListingsCaption_LDFLAGS = $(QT_LDFLAGS) $(ADD_FRAMEWORKS)
+check_ListingsCaption_SOURCES = \
+ tests/check_ListingsCaption.cpp
+check_ListingsCaption_LYX_OBJS = \
+ tests/dummy_functions.o \
+ tests/boost.o
+
+.PHONY: alltests alltests-recursive updatetests