mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Cmake tests: Save the number of ignored tests in file for later review
This commit is contained in:
parent
46d90b3415
commit
7e5b1d09f3
@ -1279,4 +1279,10 @@ endif()
|
||||
# can be run last
|
||||
add_subdirectory(development/cmake/post_install)
|
||||
|
||||
string(TIMESTAMP current_date "%Y-%m-%d %H:%M")
|
||||
execute_process(COMMAND ${LYX_GITVERSION} describe --tags
|
||||
WORKING_DIRECTORY "${TOP_SRC_DIR}"
|
||||
OUTPUT_VARIABLE current_version
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
file(APPEND "${TOP_BINARY_DIR}/Testing/IgnoredCount" "${current_date} ${current_version} Ignored tests = ${LYX_ignored_count}\n")
|
||||
message(STATUS)
|
||||
|
@ -122,5 +122,8 @@ if(QT_USES_X11)
|
||||
endif()
|
||||
|
||||
if (LYX_ENABLE_EXPORT_TESTS)
|
||||
set(lyx_ignored_count 0)
|
||||
include(${TOP_SRC_DIR}/development/autotests/ExportTests.cmake)
|
||||
message(STATUS "Number of ignored export tests now ${lyx_ignored_count}")
|
||||
set(LYX_ignored_count ${lyx_ignored_count} PARENT_SCOPE)
|
||||
endif()
|
||||
|
@ -159,7 +159,11 @@ macro(maketestname testname inverted listinverted listignored listunreliable lis
|
||||
endif()
|
||||
set(sublabel "${${listlabels}}")
|
||||
findexpr(mfound ${testname} ${listignoredx} sublabel)
|
||||
if (NOT mfound)
|
||||
if (mfound)
|
||||
MATH(EXPR lyx_ignored_count "${lyx_ignored_count}+1")
|
||||
# No testname because ignored
|
||||
set(${testname} "")
|
||||
else()
|
||||
set(sublabel2 "")
|
||||
findexpr(foundunreliable ${testname} ${listunreliablex} sublabel2)
|
||||
if (foundunreliable)
|
||||
@ -194,9 +198,6 @@ macro(maketestname testname inverted listinverted listignored listunreliable lis
|
||||
set(${testname} "${tmpprefix}${${testname}}")
|
||||
set(${listlabels} ${sublabel})
|
||||
endif()
|
||||
else()
|
||||
# No testname because ignored
|
||||
set(${testname} "")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user