]> git.lyx.org Git - lyx.git/commitdiff
Remove layout and tex2lyx tests from make check
authorGeorg Baum <baum@lyx.org>
Mon, 9 Sep 2013 19:00:11 +0000 (21:00 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 9 Sep 2013 19:00:11 +0000 (21:00 +0200)
These tests need a built and configured LyX, so they do not work in the
distcheck target. They can now be called with make alltests.

Makefile.am
src/Makefile.am
src/tex2lyx/Makefile.am

index 6df1254bd93dbfef5b399deb068225139e186aa0..5c9e7882b80fb22e2be730ba38437cc3f4351f23 100644 (file)
@@ -46,7 +46,7 @@ rpmdist: dist
        rm lyx.png; exit $$saved_status
 
 doxydoc:
-       cd sourcedoc; make doxydoc
+       cd sourcedoc; $(MAKE) doxydoc
 
 lfundoc:
        development/tools/gen_lfuns.py src/LyXAction.cpp > lib/doc/LFUNs.lyx
@@ -54,8 +54,16 @@ lfundoc:
 keystest:
        development/keystest/lyx_make.sh
 
+alltests: check alltests-recursive
+
+alltests-recursive:
+       cd src; $(MAKE) alltests-recursive
+
+updatetests:
+       cd src; $(MAKE) updatetests
+
 lgbtags:
        etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
 
-.PHONY: doxydoc
+.PHONY: doxydoc alltests alltests-recursive updatetests
 
index 17c7a25b056bb66252b5dfc0c07bb70742b685a4..024cf45661c6e49dbdf4bac43945de28db9d49bf 100644 (file)
@@ -668,9 +668,19 @@ endif
 EXTRA_DIST += \
        tests/test_layout
 
+alltests: check alltests-recursive
 
-TESTS = \
-       tests/test_layout
+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_layout
@@ -699,3 +709,4 @@ check_layout_SOURCES = \
        support/tests/boost.cpp \
        support/tests/dummy_functions.cpp
 
+.PHONY: alltests alltests-recursive updatetests
index 9ebbdc0fde7985ed466f3243f5c1d0402af51cf4..2cbe65808254c09eecf77f97481148549afdfaff 100644 (file)
@@ -53,7 +53,16 @@ TEST_RESULTS = \
        test/verbatim.lyx.lyx \
        test/XeTeX-polyglossia.lyx.lyx
 
-TESTS = test/runtests.py
+alltests: check alltests-recursive
+
+alltests-recursive: tex2lyx
+       @$(PYTHON) "$(srcdir)/test/runtests.py"; \
+       if test $$? -eq 0; then \
+               echo -e "=====================\ntex2lyx tests passed.\n====================="; \
+       else \
+               echo -e "=====================\ntex2lyx tests failed.\n====================="; \
+       fi
+
 updatetests: tex2lyx
        $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
 
@@ -107,3 +116,5 @@ tex2lyx_LDADD = \
 if INSTALL_MACOSX
 tex2lyx_LDFLAGS = -framework AppKit
 endif
+
+.PHONY: alltests alltests-recursive updatetests