CMake: run tests in serial #812

This commit is contained in:
nick black 2020-07-21 22:47:03 -04:00
parent 7a459abd56
commit dd4d4817d1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -557,6 +557,15 @@ add_test(
NAME rgbbg
COMMAND rgbbg
)
set_tests_properties(
ncpp_build
ncpp_build_exceptions
dirgb
sgr
rgb
rgbbg
PROPERTIES RUN_SERIAL TRUE
)
if(${USE_DOCTEST})
file(GLOB TESTSRCS CONFIGURE_DEPENDS tests/*.cpp)
add_executable(notcurses-tester ${TESTSRCS})
@ -575,6 +584,7 @@ add_test(
NAME notcurses-tester
COMMAND notcurses-tester -p ${CMAKE_CURRENT_SOURCE_DIR}/data
)
set_tests_properties(notcurses-tester PROPERTIES RUN_SERIAL TRUE)
install(TARGETS notcurses-tester DESTINATION bin)
endif()
endif()