mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
f67cf6f4bb
commit
9f7c8be6d7
@ -6,9 +6,13 @@
|
|||||||
|
|
||||||
project(test)
|
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})
|
foreach(_fl ${_tex_tests})
|
||||||
set(fl ${_fl})
|
set(fl ${_fl})
|
||||||
|
@ -68,10 +68,6 @@ def main(argv):
|
|||||||
errorstring = proc.stderr.read()
|
errorstring = proc.stderr.read()
|
||||||
if not errorstring is None:
|
if not errorstring is None:
|
||||||
print errorstring
|
print errorstring
|
||||||
if err == 0:
|
|
||||||
matchObj = re.match(r'.*: +Error +in +.*', errorstring, re.M|re.S)
|
|
||||||
if matchObj:
|
|
||||||
err = 9999
|
|
||||||
if err != 0:
|
if err != 0:
|
||||||
errors.append(f)
|
errors.append(f)
|
||||||
elif not overwrite:
|
elif not overwrite:
|
||||||
|
Loading…
Reference in New Issue
Block a user