Add make target to update tex2lyx test references

Now "make check" does not overwrite the test references anymore, use the
updatetests target instead. "make check" now also recognizes test failures.
This commit is contained in:
Georg Baum 2012-10-03 15:23:09 +02:00
parent adcd2281af
commit d56295bcdf
2 changed files with 4 additions and 2 deletions

View 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 \

View File

@ -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', \