mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Amend d3ec77c6
: Reorganize templates and example folders
Fixed cmake tests
This commit is contained in:
parent
64b7da4897
commit
caaa317a95
@ -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}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user