ctest export: smal improvements

1.) Use of regex to ignore group of tests
2.) If default output format is pdf2(pdflatex), the try to check also
  for xelatex and lualatex
This commit is contained in:
Kornel Benko 2014-03-12 17:15:07 +01:00
parent 1a9bcaee26
commit 59f4d0d753
2 changed files with 18 additions and 14 deletions

View File

@ -114,6 +114,8 @@ macro(getoutputformats filepath varname)
if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)") if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)")
if(CMAKE_MATCH_1 STREQUAL "default") if(CMAKE_MATCH_1 STREQUAL "default")
set(found ${out_formats}) set(found ${out_formats})
elseif(CMAKE_MATCH_1 STREQUAL "pdf2")
set(found "pdf2" "pdf4" "pdf5")
elseif(CMAKE_MATCH_1 STREQUAL "xhtml") elseif(CMAKE_MATCH_1 STREQUAL "xhtml")
set(found "xhtml") set(found "xhtml")
else() else()
@ -126,7 +128,15 @@ macro(getoutputformats filepath varname)
endmacro() endmacro()
macro(maketestname testname reverted listreverted listignored) macro(maketestname testname reverted listreverted listignored)
list(FIND ${listignored} ${${testname}} _idx) set(_idx -1)
foreach(_itrx ${${listignored}})
set(_itr "^${_itrx}$")
if(${testname} MATCHES ${_itr})
set(_idx 0)
break()
endif()
endforeach()
#list(FIND ${listignored} ${${testname}} _idx)
if (${_idx} LESS 0) if (${_idx} LESS 0)
list(FIND ${listreverted} ${${testname}} _idx) list(FIND ${listreverted} ${${testname}} _idx)
if (${_idx} LESS 0) if (${_idx} LESS 0)

View File

@ -1,17 +1,11 @@
# Entries may be regular expressions
# they will be automatically enclosed with '^' and '$'
# #
# latex8.sty is obsolete and replaced by IEEEconf. # latex8.sty is obsolete and replaced by IEEEconf.
check_load/templates/attic/latex8 check_load/templates/attic/latex8
export/templates/attic/latex8_pdf export/templates/attic/latex8_pdf.*
export/templates/attic/latex8_pdf2
export/templates/attic/latex8_pdf5_systemF
export/templates/attic/latex8_pdf5_texF
export/templates/attic/latex8_dvi
export/templates/attic/latex8_dvi3_systemF
export/templates/attic/latex8_dvi3_texF
export/templates/attic/latex8_pdf3
export/templates/attic/latex8_pdf4_systemF
export/templates/attic/latex8_pdf4_texF
# LuaTeX and XeTeX both enter in infinite loops # LuaTeX and XeTeX both enter in infinite loops
export/examples/JASA_dvi3_systemF export/examples/JASA_.*_systemF
export/examples/JASA_pdf4_systemF #
export/examples/JASA_pdf5_systemF # not compilable with LuaTeX
export/doc/hu/Tutorial_pdf5_.*