Amend d3ec77c6: Reorganize templates and example folders

Fixed cmake tests
This commit is contained in:
Kornel Benko 2019-03-19 10:56:06 +01:00
parent 64b7da4897
commit caaa317a95
2 changed files with 13 additions and 7 deletions

View File

@ -333,7 +333,8 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
# Strip extension
string(REGEX REPLACE "\\.lyx$" "" f ${f})
foreach(_lyx_format_num 16 20 21 22 23)
set(TestName "export/${libsubfolder}/${f}_lyx${_lyx_format_num}")
set(TestName1 "export/${libsubfolder}/${f}_lyx${_lyx_format_num}")
string(REGEX REPLACE "[\\(\\)]" "_" TestName "${TestName1}")
set(mytestlabel ${testlabel} "lyx2lyx" "load")
maketestname(TestName inverted invertedTests ignoredTests unreliableTests mytestlabel)
if(TestName)
@ -359,7 +360,8 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
set(lyx2lyxtestlabel "lyx2lyx")
# For use of lyx2lyx we need the python executable
set(mytestlabel ${lyx2lyxtestlabel})
set(TestName "lyx2lyx/${libsubfolder}/${f}")
set(TestName1 "lyx2lyx/${libsubfolder}/${f}")
string(REGEX REPLACE "[\\(\\)]" "_" TestName "${TestName1}")
maketestname(TestName inverted invertedTests ignoredTests unreliableTests mytestlabel)
if(TestName)
add_test(NAME ${TestName}
@ -375,7 +377,8 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
endif()
set(loadtestlabel "load")
set(mytestlabel ${loadtestlabel})
set(TestName "check_load/${libsubfolder}/${f}")
set(TestName1 "check_load/${libsubfolder}/${f}")
string(REGEX REPLACE "[\\(\\)]" "_" TestName "${TestName1}")
maketestname(TestName inverted invertedTests ignoredTests unreliableTests mytestlabel)
if(TestName)
add_test(NAME ${TestName}
@ -429,9 +432,9 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
set(_enc "_${_enc2}")
endif()
if(fonttype MATCHES "defaultF")
set(TestName "export/${libsubfolder}/${f}${_enc}_${format}")
set(TestName1 "export/${libsubfolder}/${f}${_enc}_${format}")
else()
set(TestName "export/${libsubfolder}/${f}${_enc}_${format}_${fonttype}")
set(TestName1 "export/${libsubfolder}/${f}${_enc}_${format}_${fonttype}")
endif()
if (format MATCHES "^${default_output_format}$")
set(extraLabels "defaultoutput")
@ -445,6 +448,7 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
else()
set(mytestlabel ${testlabel} ${extraLabels})
endif()
string(REGEX REPLACE "[\\(\\)]" "_" TestName "${TestName1}")
maketestname(TestName inverted invertedTests ignoredTests unreliableTests mytestlabel)
if(TestName)
add_test(NAME ${TestName}

View File

@ -6,6 +6,8 @@
project(testExamples)
foreach(_arg longsheet.gnumeric iecc05.fen beamer-icsi-logo.pdf)
configure_file(${_arg} "${CMAKE_CURRENT_BINARY_DIR}/${_arg}" COPYONLY)
foreach(_arg "External_Material/longsheet.gnumeric"
"Graphics_\&_Insets/iecc05.fen"
"Presentations/beamer-icsi-logo.pdf")
configure_file("${_arg}" "${CMAKE_CURRENT_BINARY_DIR}/${_arg}" COPYONLY)
endforeach(_arg)