<commit_before>find_package(Boost COMPONENTS unit_test_framework system filesystem serialization)

if(ENABLE_PLUGINS)
    rock_library(VectorPlugin_envire_plugin
        SOURCES vector_plugin.cpp
        DEPS envire_core
        DEPS_PKGCONFIG class_loader)
    
    rock_testsuite(test_plugins suite.cpp
        test_plugins.cpp
        test_serialization.cpp
        DEPS_CMAKE Boost
        DEPS envire_core
        DEPS_PKGCONFIG class_loader)
    
endif()

rock_testsuite(test_suite suite.cpp
    test_transform_graph.cpp
    test_boundary.cpp
    test_frame.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)
find_package(Boost COMPONENTS unit_test_framework system filesystem thread)
target_link_libraries(test_suite ${Boost_LIBRARIES})

#rock_testsuite(timing suite.cpp
#    graph_performance_test.cpp
#    DEPS_CMAKE Boost
#    DEPS envire_core)
#target_link_libraries(timing ${Boost_LIBRARIES})

rock_testsuite(test_dummy suite.cpp
    test_dummy_graph.cpp
    test_property_tag.cpp)

rock_executable(dfs_test dfs_test.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)

rock_executable(bfs_test bfs_test.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)

rock_executable(dijkstra_color_test dijkstra_color_test.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)
    
#rock_executable(performance_comapare compare_old_new_performance.cpp
#    DEPS_CMAKE Boost
#    DEPS envire_core
#    DEPS_PKGCONFIG envire)

rock_executable(dijkstra_test dijkstra_test.cpp
    DEPS_CMAKE Boost<commit_msg>TransformGraph performance test: only build the test if the envire dependency can be satisfied<commit_after>find_package(Boost COMPONENTS unit_test_framework system filesystem serialization)

if(ENABLE_PLUGINS)
    rock_library(VectorPlugin_envire_plugin
        SOURCES vector_plugin.cpp
        DEPS envire_core
        DEPS_PKGCONFIG class_loader)
    
    rock_testsuite(test_plugins suite.cpp
        test_plugins.cpp
        test_serialization.cpp
        DEPS_CMAKE Boost
        DEPS envire_core
        DEPS_PKGCONFIG class_loader)
    
endif()

rock_testsuite(test_suite suite.cpp
    test_transform_graph.cpp
    test_boundary.cpp
    test_frame.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)
find_package(Boost COMPONENTS unit_test_framework system filesystem thread)
target_link_libraries(test_suite ${Boost_LIBRARIES})

#rock_testsuite(timing suite.cpp
#    graph_performance_test.cpp
#    DEPS_CMAKE Boost
#    DEPS envire_core)
#target_link_libraries(timing ${Boost_LIBRARIES})

rock_testsuite(test_dummy suite.cpp
    test_dummy_graph.cpp
    test_property_tag.cpp)

rock_executable(dfs_test dfs_test.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)

rock_executable(bfs_test bfs_test.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)

rock_executable(dijkstra_color_test dijkstra_color_test.cpp
    DEPS_CMAKE Boost
    DEPS envire_core)
    


#only enable the performance comparision when the old envire is installed
pkg_check_modules(OLD_ENVIRE envire)
if(OLD_ENVIRE_FOUND)
    rock_executable(performance_comapare compare_old_new_performance.cpp
        DEPS_CMAKE Boost
        DEPS envire_core
        DEPS_PKGCONFIG envire)
else()
    message(STATUS "envire not found ... NOT building the performance comparision test")
endif()
rock_executable(dijkstra_test dijkstra_test.cpp
    DEPS_CMAKE Boost
{'fraction_non_alphanumeric': 0.04451847365233192, 'fraction_numerical': 0.0, 'mean_word_length': 4.336025848142165, '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': '4291173', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1108, 'n_words': 208}