mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Cmake export tests: Ignore spaces after expressions in .*Tests files
This commit is contained in:
parent
ad0643f4b5
commit
a07f9b7119
@ -114,10 +114,10 @@ macro(maketestname testname reverted listsuspicious listignored listunreliable l
|
||||
set(listignoredx ${listignored})
|
||||
set(listunreliablex ${listunreliable})
|
||||
endif()
|
||||
set(sublabel "")
|
||||
findexpr(mfound ${testname} ${listignoredx} sublabel)
|
||||
if (NOT mfound)
|
||||
string(REGEX MATCH "_(systemF|texF|pdf3|pdf2|pdf|dvi|lyx16|xhtml)$" _v ${${testname}})
|
||||
set(sublabel "")
|
||||
# check if test _may_ be in listsuspicious
|
||||
if (_v)
|
||||
findexpr(mfound ${testname} ${listsuspiciousx} sublabel)
|
||||
@ -138,7 +138,6 @@ macro(maketestname testname reverted listsuspicious listignored listunreliable l
|
||||
endif()
|
||||
if (nsfound2)
|
||||
set(sublabel "suspended" ${sublabel})
|
||||
message(STATUS "found suspended test ${${testname}}")
|
||||
endif()
|
||||
list(REMOVE_DUPLICATES sublabel)
|
||||
if (nsfound OR nsfound2)
|
||||
@ -182,6 +181,7 @@ macro(loadTestList filename resList)
|
||||
message(STATUS "Reading list ${filename}")
|
||||
foreach(_l ${tempList})
|
||||
set(_newl "${_l}")
|
||||
string(REGEX REPLACE "[ \t]+$" "" _newl "${_l}")
|
||||
string(REGEX REPLACE "[ \t]*#.*$" "" _newl "${_l}")
|
||||
if(_newl)
|
||||
list(APPEND ${resList} "${_newl}")
|
||||
@ -262,7 +262,7 @@ macro(handlesuspended TestName reverted testlabel)
|
||||
endmacro()
|
||||
|
||||
# preparing to add e.g. development/mathmacros to the foreach() loop
|
||||
foreach(libsubfolderx lib/doc lib/examples lib/templates development/mathmacros autotests/export)
|
||||
foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates development/mathmacros)
|
||||
set(testlabel "export")
|
||||
if (libsubfolderx MATCHES "lib/doc")
|
||||
list(APPEND testlabel "manuals")
|
||||
|
Loading…
Reference in New Issue
Block a user