fix(CMakeLists.txt): disable problematic tests on Windows

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2015-07-20 08:08:03 -07:00
parent 23dd47d27f
commit a99c44b644
2 changed files with 9 additions and 3 deletions

View file

@ -352,6 +352,7 @@ add_subdirectory(tests/frontends/lean)
add_subdirectory(tests/shell)
# Include style check
if (NOT(${CMAKE_SYSTEM_NAME} MATCHES "Windows"))
include(StyleCheck)
file(GLOB_RECURSE LEAN_SOURCES
"${LEAN_SOURCE_DIR}"
@ -359,6 +360,7 @@ file(GLOB_RECURSE LEAN_SOURCES
"${LEAN_SOURCE_DIR}/[A-Za-z]*.h")
add_style_check_target(style "${LEAN_SOURCES}")
add_test(NAME style_check COMMAND "${PYTHON_EXECUTABLE}" "${LEAN_SOURCE_DIR}/cmake/Modules/cpplint.py" ${LEAN_SOURCES})
endif()
# Set PROCESSOR_COUNT
if(NOT DEFINED PROCESSOR_COUNT)

View file

@ -52,9 +52,13 @@ add_test(NAME "issue_597"
add_test(NAME "issue_616"
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lean/extra"
COMMAND bash "./issue_616.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean")
add_test(NAME "normalizer_perf"
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lean/extra"
COMMAND bash "./timeout.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean" "1" "slow1.lean")
if (NOT(${CMAKE_SYSTEM_NAME} MATCHES "Windows"))
# The following test cannot be executed on Windows because of the
# bash script timeout.sh
add_test(NAME "normalizer_perf"
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lean/extra"
COMMAND bash "./timeout.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean" "1" "slow1.lean")
endif()
# LEAN TESTS
file(GLOB LEANTESTS "${LEAN_SOURCE_DIR}/../tests/lean/*.lean")