]> git.lyx.org Git - lyx.git/commitdiff
Add make target to update tex2lyx test references
authorGeorg Baum <baum@lyx.org>
Wed, 3 Oct 2012 13:23:09 +0000 (15:23 +0200)
committerGeorg Baum <baum@lyx.org>
Wed, 3 Oct 2012 13:23:09 +0000 (15:23 +0200)
Now "make check" does not overwrite the test references anymore, use the
updatetests target instead. "make check" now also recognizes test failures.

src/tex2lyx/Makefile.am
src/tex2lyx/test/runtests.py

index d239ed3cf839c4c391a8296d2f2790d25702f6c9..5e65565e674c3e3745748b4b8ee09484dc093df0 100644 (file)
@@ -32,6 +32,8 @@ TEST_FILES = \
        test/XeTeX-polyglossia.tex
 
 TESTS = test/runtests.py
+updatetests:
+       $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx ../../../lib/scripts "$(srcdir)/test"
 
 LINKED_FILES = \
        ../Author.cpp \
index 354449d6641f9b0fa703eef1e9ee6d09e6d34902..094f5d6c0a8e307debf2da6359fa4969c0ff9d8f 100755 (executable)
@@ -42,8 +42,8 @@ def main(argv):
     if len(argv) >= 4:
         outputdir = sys.argv[3]
     else:
-        outputdir = inputdir
-#        outputdir = os.path.join(os.path.dirname(tex2lyx), "test")
+#        outputdir = inputdir
+        outputdir = os.path.join(os.path.dirname(tex2lyx), "test")
 
     files = ['test.ltx', 'test-structure.tex', 'test-insets.tex', \
              'box-color-size-space-align.tex', 'CJK.tex', \