<commit_before># Create TestDriver and default tests for openCherry
#
# CMake variables used:
#
# ${CHERRY_TESTS} : filenames of all tests that run without a parameter
# ${CHERRY_CUSTOM_TESTS} : filenames of custom tests which are just added to the TestDriver. Execution
#                              of these has to be specified manually with the ADD_TEST CMake command.
# 
MACRO(OPENCHERRY_CREATE_TESTS)
  
  CREATE_PLUGIN_NAME(plugin_name ${OPENCHERRY_BASE_DIR}/Testing ${CMAKE_CURRENT_SOURCE_DIR})
  STRING(REPLACE . _ plugin_target ${plugin_name})
  
  INCLUDE_DIRECTORIES(${OPENCHERRY_BASE_DIR}/Testing)
  
  #
  # Create the TestDriver binary which contains all the tests.
  #  
  CREATE_TEST_SOURCELIST(cherry_test_sources TestDriver_${plugin_target}.cpp 
    ${OPENCHERRY_TESTS} ${OPENCHERRY_CUSTOM_TESTS} )
  
  ADD_EXECUTABLE(TestDriver_${plugin_target} ${cherry_test_sources} ${OPENCHERRY_BASE_DIR}/Testing/cherryTestManager.cpp)
  TARGET_LINK_LIBRARIES(TestDriver_${plugin_target} ${plugin_target})
  #
  # Now tell CMake which tests should be run. This is done automatically 
  # for all tests in CHERRY_TESTS 
  #
  FOREACH( test ${OPENCHERRY_TESTS} )
    GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
    ADD_TEST(${TName} ${EXECUTABLE_OUTPUT_PATH}/TestDriver_${plugin_target} ${TName})
  ENDFOREACH( test )

ENDMACRO(OPENCHERRY_CREATE_TESTS)
<commit_msg>ENH (#1656): Adding POCO include dirs for the test drivers<commit_after># Create TestDriver and default tests for openCherry
#
# CMake variables used:
#
# ${CHERRY_TESTS} : filenames of all tests that run without a parameter
# ${CHERRY_CUSTOM_TESTS} : filenames of custom tests which are just added to the TestDriver. Execution
#                              of these has to be specified manually with the ADD_TEST CMake command.
# 
MACRO(OPENCHERRY_CREATE_TESTS)
  
  CREATE_PLUGIN_NAME(plugin_name ${OPENCHERRY_BASE_DIR}/Testing ${CMAKE_CURRENT_SOURCE_DIR})
  STRING(REPLACE . _ plugin_target ${plugin_name})
  
  INCLUDE_DIRECTORIES(${OPENCHERRY_BASE_DIR}/Testing)
  INCLUDE_DIRECTORIES(${Poco_INCLUDE_DIRS})
  
  #
  # Create the TestDriver binary which contains all the tests.
  #  
  CREATE_TEST_SOURCELIST(cherry_test_sources TestDriver_${plugin_target}.cpp 
    ${OPENCHERRY_TESTS} ${OPENCHERRY_CUSTOM_TESTS} )
  
  ADD_EXECUTABLE(TestDriver_${plugin_target} ${cherry_test_sources} ${OPENCHERRY_BASE_DIR}/Testing/cherryTestManager.cpp)
  TARGET_LINK_LIBRARIES(TestDriver_${plugin_target} ${plugin_target})
  #
  # Now tell CMake which tests should be run. This is done automatically 
  # for all tests in CHERRY_TESTS 
  #
  FOREACH( test ${OPENCHERRY_TESTS} )
    GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
    ADD_TEST(${TName} ${EXECUTABLE_OUTPUT_PATH}/TestDriver_${plugin_target} ${TName})
  ENDFOREACH( test )

ENDMACRO(OPENCHERRY_CREATE_TESTS)

{'fraction_non_alphanumeric': 0.08577479703494528, 'fraction_numerical': 0.0014119308153900459, 'mean_word_length': 5.1475054229934925, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2882355', 'n_tokens_mistral': 1003, 'n_tokens_neox': 965, 'n_words': 212}