commit ef05496ce99f7890700d9e54f3c48d6d04153049
Author: Kornel Benko <[email protected]>
Date:   Thu Mar 2 15:53:34 2017 +0100

    Cmake tests: Add visual indication if a test is ignoring some latex error 
messages
---
 development/autotests/ExportTests.cmake |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/development/autotests/ExportTests.cmake 
b/development/autotests/ExportTests.cmake
index bb73ab9..3f91b13 100644
--- a/development/autotests/ExportTests.cmake
+++ b/development/autotests/ExportTests.cmake
@@ -419,11 +419,15 @@ foreach(libsubfolderx autotests/export lib/doc 
lib/examples lib/templates autote
           else()
             set(TestName 
"export/${libsubfolder}/${f}${_enc}_${format}_${fonttype}")
           endif()
-          set(mytestlabel ${testlabel})
+         set(missingLabels )
+         findexpr(mfound TestName ignoreLatexErrorsTests missingLabels)
+         if (mfound)
+           set(mytestlabel ${testlabel} "ignoring" ${missingLabels})
+         else()
+           set(mytestlabel ${testlabel})
+         endif()
           maketestname(TestName inverted invertedTests ignoredTests 
unreliableTests mytestlabel)
           if(TestName)
-           set(missingLabels )
-           findexpr(mfound TestName ignoreLatexErrorsTests missingLabels)
             add_test(NAME ${TestName}
               WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}"
               COMMAND ${CMAKE_COMMAND} -DLYX_ROOT=${LIBSUB_SRC_DIR}

Reply via email to