mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
CMake: only run PoC tests if TERM is set
This commit is contained in:
parent
38a7306ba8
commit
77e04c63c5
@ -541,6 +541,7 @@ if(${BUILD_TESTING})
|
|||||||
# sadly, this doesn't take effect until CMake 3.17...
|
# sadly, this doesn't take effect until CMake 3.17...
|
||||||
set(CMAKE_CTEST_ARGUMENTS "-V")
|
set(CMAKE_CTEST_ARGUMENTS "-V")
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
if(DEFINED ENV{TERM})
|
||||||
add_test(
|
add_test(
|
||||||
NAME ncpp_build
|
NAME ncpp_build
|
||||||
COMMAND ncpp_build
|
COMMAND ncpp_build
|
||||||
@ -557,13 +558,10 @@ add_test(
|
|||||||
NAME rgbbg
|
NAME rgbbg
|
||||||
COMMAND rgbbg
|
COMMAND rgbbg
|
||||||
)
|
)
|
||||||
set_tests_properties(
|
set_tests_properties(ncpp_build ncpp_build_exceptions rgb rgbbg
|
||||||
ncpp_build
|
|
||||||
ncpp_build_exceptions
|
|
||||||
rgb
|
|
||||||
rgbbg
|
|
||||||
PROPERTIES RUN_SERIAL TRUE
|
PROPERTIES RUN_SERIAL TRUE
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
if(${USE_DOCTEST})
|
if(${USE_DOCTEST})
|
||||||
file(GLOB TESTSRCS CONFIGURE_DEPENDS tests/*.cpp)
|
file(GLOB TESTSRCS CONFIGURE_DEPENDS tests/*.cpp)
|
||||||
add_executable(notcurses-tester ${TESTSRCS})
|
add_executable(notcurses-tester ${TESTSRCS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user