ctests: rename pattern file "suspiciousTests" to "invertedTests". part 2

This commit is contained in:
Günter Milde 2016-09-16 21:01:55 +02:00
parent 3294b16bf6
commit d7d23934bc

View File

@ -123,18 +123,18 @@ function(join rvalues glue routput)
set(${routput} ${out} PARENT_SCOPE) set(${routput} ${out} PARENT_SCOPE)
endfunction() endfunction()
macro(maketestname testname inverted listsuspicious listignored listunreliable listlabels) macro(maketestname testname inverted listinverted listignored listunreliable listlabels)
# initialize output variable # initialize output variable
set(${inverted} 0) set(${inverted} 0)
string(REGEX MATCH "\\/[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${${testname}}) string(REGEX MATCH "\\/[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${${testname}})
if(_v) if(_v)
string(REGEX REPLACE "\\/" "" _v ${_v}) string(REGEX REPLACE "\\/" "" _v ${_v})
set(listsuspiciousx ${listsuspicious}_${_v}) set(listinvertedx ${listinverted}_${_v})
set(listignoredx ${listignored}_${_v}) set(listignoredx ${listignored}_${_v})
set(listunreliablex ${listunreliable}_${_v}) set(listunreliablex ${listunreliable}_${_v})
set(listsuspendedx suspendedTests_${_v}) set(listsuspendedx suspendedTests_${_v})
else() else()
set(listsuspiciousx ${listsuspicious}) set(listinvertedx ${listinverted})
set(listignoredx ${listignored}) set(listignoredx ${listignored})
set(listunreliablex ${listunreliable}) set(listunreliablex ${listunreliable})
set(listsuspendedx suspendedTests) set(listsuspendedx suspendedTests)
@ -149,10 +149,10 @@ macro(maketestname testname inverted listsuspicious listignored listunreliable l
list(REMOVE_ITEM sublabel "export" "inverted" "templates" "mathmacros" "manuals" "autotests") list(REMOVE_ITEM sublabel "export" "inverted" "templates" "mathmacros" "manuals" "autotests")
else() else()
string(REGEX MATCH "(^check_load|_(systemF|texF|pdf3|pdf2|pdf|dvi|lyx[0-9][0-9]|xhtml)$)" _v ${${testname}}) string(REGEX MATCH "(^check_load|_(systemF|texF|pdf3|pdf2|pdf|dvi|lyx[0-9][0-9]|xhtml)$)" _v ${${testname}})
# check if test _may_ be in listsuspicious # check if test _may_ be in listinverted
set(sublabel2 "") set(sublabel2 "")
if (_v) if (_v)
findexpr(mfound ${testname} ${listsuspiciousx} sublabel2) findexpr(mfound ${testname} ${listinvertedx} sublabel2)
else() else()
set(mfound OFF) set(mfound OFF)
endif() endif()