Skip to content

Commit

Permalink
Added option to disable test discovery (off by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki committed Sep 3, 2024
1 parent 74a27ed commit cb00cce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ option(ENABLE_PKTINFO "Enable using IP_PKTINFO to allow the listener extracting
option(ENABLE_RELATIVE_LIBPATH "Should application contain relative library paths, like ../lib" OFF)
option(ENABLE_GETNAMEINFO "In-logs sockaddr-to-string should do rev-dns" OFF)
option(ENABLE_UNITTESTS "Enable unit tests" OFF)
option(DISABLE_UNITTESTS_DISCOVERY "Do not discover unit tests when enabled" OFF)
option(ENABLE_ENCRYPTION "Enable encryption in SRT" ON)
option(ENABLE_AEAD_API_PREVIEW "Enable AEAD API preview in SRT" Off)
option(ENABLE_MAXREXMITBW "Enable SRTO_MAXREXMITBW (v1.6.0 API preview)" Off)
Expand Down Expand Up @@ -1527,7 +1528,9 @@ if (ENABLE_UNITTESTS AND ENABLE_CXX11)
#set_tests_properties(test-srt PROPERTIES RUN_SERIAL TRUE)
else()
set_tests_properties(${tests_srt} PROPERTIES RUN_SERIAL TRUE)
#gtest_discover_tests(test-srt)
if (NOT DISABLE_UNITTESTS_DISCOVERY)
gtest_discover_tests(test-srt)
endif()
endif()

enable_testing()
Expand Down

0 comments on commit cb00cce

Please sign in to comment.