mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +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)
|
||||
|
||||
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})
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user