]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/Makefile.am
lyx_2_1.py: fix a mistake in previous commit
[lyx.git] / lib / lyx2lyx / Makefile.am
index 100c54ceb1431aa1add7ae9357fb17298134d119..4490cb72f30a8b9561afca672c32aa5afe59548b 100644 (file)
@@ -1,8 +1,8 @@
 include $(top_srcdir)/config/common.am
 
-CLEANFILES += *.pyc *.pyo
+CLEANFILES = *.pyc *.pyo
 
-EXTRA_DIST = lyx2lyx_version.py.in
+EXTRA_DIST = lyx2lyx_version.py.in test_parser_tools.py CMakeLists.txt
 
 CHMOD = chmod
 
@@ -38,3 +38,14 @@ dist_lyx2lyx_PYTHON = \
 
 install-data-hook:
        $(CHMOD) 755 $(DESTDIR)$(lyx2lyxdir)/lyx2lyx
+
+alltests: check alltests-recursive
+
+alltests-recursive:
+       @$(PYTHON) "$(srcdir)/test_parser_tools.py"; \
+       if test $$? -eq 0; then \
+               echo -e "=====================\nlyx2lyx tests passed.\n====================="; \
+       else \
+               echo -e "=====================\nlyx2lyx tests failed.\n====================="; \
+       fi
+