<commit_before>set (SUPRESSIONS "${CMAKE_CURRENT_SOURCE_DIR}/../valgrind.supp")

add_test_program (test_httpendpoint httpendpoint.c)
add_dependencies(test_httpendpoint kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_httpendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS}
                           "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/gst-plugins")

target_link_libraries(test_httpendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES})

add_test_program (test_recorderendpoint recorderendpoint.c)
add_dependencies(test_recorderendpoint kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_recorderendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS}
                           "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/gst-plugins")
target_link_libraries(test_recorderendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES})

add_test_program (test_playerendpoint playerendpoint.c)
add_dependencies(test_playerendpoint kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_playerendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS}
                           "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/gst-plugins")
target_link_libraries(test_playerendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_rtpendpoint rtpendpoint.c)
add_dependencies(test_rtpendpoint kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_rtpendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_rtpendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_rtpendpoint_audio rtpendpoint_audio.c)
add_dependencies(test_rtpendpoint_audio kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_rtpendpoint_audio PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_rtpendpoint_audio
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_rtpendpoint_video rtpendpoint_video.c)
add_dependencies(test_rtpendpoint_video kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_rtpendpoint_video PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_rtpendpoint_video
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

# add_test_program (test_webrtcendpoint webrtcendpoint.c)
# add_dependencies(test_webrtcendpoint kmstestutils kmsplugin)
# target_include_directories(test_webrtcendpoint PRIVATE
#                            ${KMSGSTCOMMONS_INCLUDE_DIRS}
#                            ${GSTREAMER_INCLUDE_DIRS}
#                            ${GSTREAMER_CHECK_INCLUDE_DIRS})
# target_link_libraries(test_webrtcendpoint
#                       ${GSTREAMER_LIBRARIES}
#                       ${GSTREAMER_CHECK_LIBRARIES}
#                       ${KMSGSTCOMMONS_LIBRARIES}
#                       kmstestutils)<commit_msg>webrtcendpoint: Activate webrtcendpoint tests<commit_after>set (SUPRESSIONS "${CMAKE_CURRENT_SOURCE_DIR}/../valgrind.supp")

add_test_program (test_httpendpoint httpendpoint.c)
add_dependencies(test_httpendpoint kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_httpendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS}
                           "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/gst-plugins")

target_link_libraries(test_httpendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES})

add_test_program (test_recorderendpoint recorderendpoint.c)
add_dependencies(test_recorderendpoint kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_recorderendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS}
                           "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/gst-plugins")
target_link_libraries(test_recorderendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES})

add_test_program (test_playerendpoint playerendpoint.c)
add_dependencies(test_playerendpoint kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_playerendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS}
                           "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/gst-plugins")
target_link_libraries(test_playerendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_rtpendpoint rtpendpoint.c)
add_dependencies(test_rtpendpoint kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_rtpendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_rtpendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_rtpendpoint_audio rtpendpoint_audio.c)
add_dependencies(test_rtpendpoint_audio kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_rtpendpoint_audio PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_rtpendpoint_audio
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_rtpendpoint_video rtpendpoint_video.c)
add_dependencies(test_rtpendpoint_video kmstestutils kmscore ${LIBRARY_NAME}plugins)
target_include_directories(test_rtpendpoint_video PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_rtpendpoint_video
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)

add_test_program (test_webrtcendpoint webrtcendpoint.c)
add_dependencies(test_webrtcendpoint kmstestutils kmscore kmsdtls ${LIBRARY_NAME}plugins)
target_include_directories(test_webrtcendpoint PRIVATE
                           ${KMSGSTCOMMONS_INCLUDE_DIRS}
                           ${GSTREAMER_INCLUDE_DIRS}
                           ${GSTREAMER_CHECK_INCLUDE_DIRS})
target_link_libraries(test_webrtcendpoint
                      ${GSTREAMER_LIBRARIES}
                      ${GSTREAMER_CHECK_LIBRARIES}
                      ${KMSGSTCOMMONS_LIBRARIES}
                      kmstestutils)
{'fraction_non_alphanumeric': 0.06394619856377522, 'fraction_numerical': 0.0, 'mean_word_length': 2.125757035981475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5982618', 'n_tokens_mistral': 2680, 'n_tokens_neox': 2498, 'n_words': 244}