<commit_before>cmake_minimum_required(VERSION 3.1)

project(SofaPython_test)

set(SOURCE_FILES
    PyScene.cpp
    dummy.cpp
    python_test_list.cpp
    memory.cpp
    PythonFactory_test.cpp
    PythonScriptControllerHelper_test.cpp
)

set(PYTHON_FILES
    python/dataVecResize.py
    python/testController.py
    python/test_PySceneWithPyCtlr.py
    python/test_Quaternion.py
    python/test_Tools.py
    python/test_mass.py
    python/test_units.py
    python/test_MeshLoader.py
    python/test_PythonFactory.py
    python/test_PythonScriptControllerHelper.py
)


find_package(SofaTest)
find_package(SofaPython)

add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${PYTHON_FILES})
target_link_libraries(${PROJECT_NAME} SofaPython SofaTest SofaGTestMain)
add_definitions("-DSOFAPYTHON_TEST_PYTHON_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/python\"")

add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
<commit_msg>[SofaPython]] ADD test file to cmakelists<commit_after>cmake_minimum_required(VERSION 3.1)

project(SofaPython_test)

set(SOURCE_FILES
    PyScene.cpp
    dummy.cpp
    python_test_list.cpp
    memory.cpp
    PythonFactory_test.cpp
    PythonScriptControllerHelper_test.cpp
)

set(PYTHON_FILES
    python/automaticNodeInitialization.py
    python/dataVecResize.py
    python/testController.py
    python/test_PySceneWithPyCtlr.py
    python/test_Quaternion.py
    python/test_Tools.py
    python/test_mass.py
    python/test_units.py
    python/test_MeshLoader.py
    python/test_PythonFactory.py
    python/test_PythonScriptControllerHelper.py
)


find_package(SofaTest)
find_package(SofaPython)

add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${PYTHON_FILES})
target_link_libraries(${PROJECT_NAME} SofaPython SofaTest SofaGTestMain)
add_definitions("-DSOFAPYTHON_TEST_PYTHON_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/python\"")

add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})

{'fraction_non_alphanumeric': 0.08748674443266172, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 5.484536082474227, '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': '3314272', 'n_tokens_mistral': 704, 'n_tokens_neox': 670, 'n_words': 76}