<commit_before># $Id$
# $ $URL$
# Maintainer: joaander

###############################
# UNIX like OSes need a few settings for the unit test library
if (NOT WIN32)
    # first, they need the boost unit test framework added as a library
    set(ADDITIONAL_LIBS libhoomd
            ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
            )

    # then we need to specify BOOST_TEST_DYN_LINK if the unit test framework library is a shared lib
    if("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.dylib$")
    add_definitions(-DBOOST_TEST_DYN_LINK)
    endif("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.dylib$")
    
    if("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.so$")
    add_definitions(-DBOOST_TEST_DYN_LINK)
    endif("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.so$")
endif (NOT WIN32)

####################################
## Setup valgrind options
if (UNIX AND NOT APPLE)
find_program(VALGRIND valgrind DOC 
    "valgrind executable for advanced regression tests")
endif (UNIX AND NOT APPLE)

## User gets an option to enable valgrind tests
if (VALGRIND)
    option(ENABLE_VALGRIND OFF "Enable running of unit tests through valgrind")

    set(VALGRIND_COMMON_ARGS
            "--leak-check=full;--suppressions=${CMAKE_CURRENT_SOURCE_DIR}/combined_valgrind.supp;--error-exitcode=1")
    mark_as_advanced(VALGRIND)
endif (VALGRIND)

if (ENABLE_VALGRIND)
    set(DART_TESTING_TIMEOUT 4500 CACHE STRING "Testing timeout" FORCE)
endif (ENABLE_VALGRIND)

enable_testing()

###################################
## Setup all of the test executables in a for loop
set(TEST_LIST
    test_index1d
    test_molfile
    test_gpu_array
    test_pdata
    test_particle_group
    test_utils
    test_harmonic_bond_force
    test_harmonic_angle_force
    test_harmonic_dihedral_force
    test_harmonic_improper_force
    test_cgcmm_angle_force
    test_fenebond_force
    test_lj_wall_force
    test_neighborlist
    test_lj_force
    test_table_potential
    test_slj_force
    test_gaussian_force
    test_yukawa_force<commit_msg>add test_bd_rigid_updater.cc to made files<commit_after># $Id$
# $ $URL$
# Maintainer: joaander

###############################
# UNIX like OSes need a few settings for the unit test library
if (NOT WIN32)
    # first, they need the boost unit test framework added as a library
    set(ADDITIONAL_LIBS libhoomd
            ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
            )

    # then we need to specify BOOST_TEST_DYN_LINK if the unit test framework library is a shared lib
    if("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.dylib$")
    add_definitions(-DBOOST_TEST_DYN_LINK)
    endif("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.dylib$")
    
    if("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.so$")
    add_definitions(-DBOOST_TEST_DYN_LINK)
    endif("${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}" MATCHES "\\.so$")
endif (NOT WIN32)

####################################
## Setup valgrind options
if (UNIX AND NOT APPLE)
find_program(VALGRIND valgrind DOC 
    "valgrind executable for advanced regression tests")
endif (UNIX AND NOT APPLE)

## User gets an option to enable valgrind tests
if (VALGRIND)
    option(ENABLE_VALGRIND OFF "Enable running of unit tests through valgrind")

    set(VALGRIND_COMMON_ARGS
            "--leak-check=full;--suppressions=${CMAKE_CURRENT_SOURCE_DIR}/combined_valgrind.supp;--error-exitcode=1")
    mark_as_advanced(VALGRIND)
endif (VALGRIND)

if (ENABLE_VALGRIND)
    set(DART_TESTING_TIMEOUT 4500 CACHE STRING "Testing timeout" FORCE)
endif (ENABLE_VALGRIND)

enable_testing()

###################################
## Setup all of the test executables in a for loop
set(TEST_LIST
    test_bd_rigid_updater
    test_index1d
    test_molfile
    test_gpu_array
    test_pdata
    test_particle_group
    test_utils
    test_harmonic_bond_force
    test_harmonic_angle_force
    test_harmonic_dihedral_force
    test_harmonic_improper_force
    test_cgcmm_angle_force
    test_fenebond_force
    test_lj_wall_force
    test_neighborlist
    test_lj_force
    test_table_potential
    test_slj_force
    test_gaussian_force
    test_yukawa_force
{'fraction_non_alphanumeric': 0.11700844390832328, 'fraction_numerical': 0.0048250904704463205, 'mean_word_length': 4.462450592885376, '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': '6478438', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1373, 'n_words': 316}