X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fbatchtests%2FCMakeLists.txt;h=87a741deeeb78486c2a8fbacea5b570bd88f9a07;hb=b5722962fb0393299e02df0b146522770e98aef6;hp=94bb1cfa1d1eaeaff75c3d6dbdf6cfa8f719f765;hpb=17dc24419a2ba2bdf09da050b364d1388983106e;p=lyx.git diff --git a/development/batchtests/CMakeLists.txt b/development/batchtests/CMakeLists.txt index 94bb1cfa1d..87a741deee 100644 --- a/development/batchtests/CMakeLists.txt +++ b/development/batchtests/CMakeLists.txt @@ -1,7 +1,17 @@ # Checking whether moving beamer slides through the document doesn't break its structure. # see also https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203281.html -add_test(NAME "outline-beamer" COMMAND ${PERL_EXECUTABLE} ${CMAKE_BINARY_DIR}/lyx_batch.pl beamer_test) -setmarkedtestlabel(outline-beamer "export") +set(testlabel "batch") +string(TOUPPER "${testlabel}_" testprefix) + +macro(add_batch_test testname testpar) + add_test(NAME "${testprefix}${testname}" COMMAND ${PERL_EXECUTABLE} ${CMAKE_BINARY_DIR}/lyx_batch.pl ${testpar}) + setmarkedtestlabel(${testprefix}${testname} ${ARGN} "${testlabel}") +endmacro() + +add_batch_test(outline-beamer beamer_test "export") # Checking that info inset correctly fills up VCS information # see also bug #10835 -add_test(NAME "vcs-info" COMMAND ${PERL_EXECUTABLE} ${CMAKE_BINARY_DIR}/lyx_batch.pl vcs_info_export) +add_batch_test(vcs-info vcs_info_export) +add_batch_test(AMS-import ams-import "tex2lyx") +add_batch_test(SAVE-as save_as_test "export") +