Cmake build tex2lyx testing:

To please Georg:
1.) Do _not_ use globbing to get test file
2.) Do not evaluate stderr output of tex2lyx
This commit is contained in:
Kornel Benko 2012-12-15 15:38:48 +01:00
parent f67cf6f4bb
commit 9f7c8be6d7
2 changed files with 6 additions and 6 deletions

View File

@ -6,9 +6,13 @@
project(test)
file(GLOB _tex_tests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.ltx" "${CMAKE_CURRENT_SOURCE_DIR}/*.tex")
#file(GLOB _tex_tests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.ltx" "${CMAKE_CURRENT_SOURCE_DIR}/*.tex")
#
#list(REMOVE_ITEM _tex_tests DummyDocument.tex)
list(REMOVE_ITEM _tex_tests DummyDocument.tex)
set(_tex_tests test.ltx test-structure.tex test-insets.tex
test-modules.tex box-color-size-space-align.tex
CJK.tex XeTeX-polyglossia.tex)
foreach(_fl ${_tex_tests})
set(fl ${_fl})

View File

@ -68,10 +68,6 @@ def main(argv):
errorstring = proc.stderr.read()
if not errorstring is None:
print errorstring
if err == 0:
matchObj = re.match(r'.*: +Error +in +.*', errorstring, re.M|re.S)
if matchObj:
err = 9999
if err != 0:
errors.append(f)
elif not overwrite: