Move 'slow' test files to different subdir. Modify CTestCustom.cmake.in to run leantests.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
6f3b0c30fb
commit
6da194334e
6 changed files with 13 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
|||
# Complete list of options is available at http://cmake.org/Wiki/CMake/Testing_With_CTest
|
||||
|
||||
# List of tests to ignore during the MemCheck stage
|
||||
SET(CTEST_CUSTOM_MEMCHECK_IGNORE ${CTEST_CUSTOM_MEMCHECK_IGNORE}
|
||||
"leantests"
|
||||
SET(CTEST_CUSTOM_MEMCHECK_IGNORE ${CTEST_CUSTOM_MEMCHECK_IGNORE}
|
||||
"leanslowtests"
|
||||
"threads"
|
||||
)
|
||||
|
||||
|
||||
# Regular expression for excluding files from coverage testing
|
||||
SET(CTEST_CUSTOM_COVERAGE_EXCLUDE ${CTEST_CUSTOM_COVERAGE_EXCLUDE} "tests/*")
|
||||
|
||||
|
|
|
@ -8,3 +8,6 @@ add_test(example3 ${CMAKE_CURRENT_BINARY_DIR}/lean "${LEAN_SOURCE_DIR}/../exampl
|
|||
add_test(NAME leantests
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lean"
|
||||
COMMAND "./test.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean")
|
||||
add_test(NAME leanslowtests
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lean/slow"
|
||||
COMMAND "../test.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean")
|
||||
|
|
3
tests/lean/slow/config.lean
Normal file
3
tests/lean/slow/config.lean
Normal file
|
@ -0,0 +1,3 @@
|
|||
(* Set default configuration for tests *)
|
||||
Set pp::colors false
|
||||
Set pp::unicode true
|
4
tests/lean/slow/config.lean.expected.out
Normal file
4
tests/lean/slow/config.lean.expected.out
Normal file
|
@ -0,0 +1,4 @@
|
|||
Set: pp::colors
|
||||
Set: pp::unicode
|
||||
Set: pp::colors
|
||||
Set: pp::unicode
|
Loading…
Reference in a new issue