<commit_before>cmake_minimum_required(VERSION 2.8)

ENABLE_TESTING()

set(TEST_ARGS "-+env:OPCODE6DIR64=${CMAKE_CURRENT_BINARY_DIR}/../..")

# Tests that depend on cunit
find_library(CUNIT_LIBRARY cunit)
if(CUNIT_LIBRARY)

add_executable(csoundTypeSystemTest csound_type_system_test.c)
target_link_libraries(csoundTypeSystemTest ${CSOUNDLIB} ${CUNIT_LIBRARY})
set(csoundTypeSystemTest_CFLAGS -D__BUILDING_LIBCSOUND)
add_test(NAME TestCsoundTypeSystem
	COMMAND $<TARGET_FILE:csoundTypeSystemTest> ${TEST_ARGS})

add_executable(csoundMessageBufferTest csound_message_buffer_test.c)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../../H")
target_link_libraries(csoundMessageBufferTest ${CSOUNDLIB} cunit ${CUNIT_LIBRARY})
add_test(NAME TestCsoundMessageBuffer
	COMMAND $<TARGET_FILE:csoundMessageBufferTest> ${TEST_ARGS})
endif()



<commit_msg>removed explicit use of cunit and just use the version found by CMake find_library (adding cunit as arg does not work on Mac)<commit_after>cmake_minimum_required(VERSION 2.8)

ENABLE_TESTING()

set(TEST_ARGS "-+env:OPCODE6DIR64=${CMAKE_CURRENT_BINARY_DIR}/../..")

# Tests that depend on cunit
find_library(CUNIT_LIBRARY cunit)
if(CUNIT_LIBRARY)

add_executable(csoundTypeSystemTest csound_type_system_test.c)
target_link_libraries(csoundTypeSystemTest ${CSOUNDLIB} ${CUNIT_LIBRARY})
set(csoundTypeSystemTest_CFLAGS -D__BUILDING_LIBCSOUND)
add_test(NAME TestCsoundTypeSystem
	COMMAND $<TARGET_FILE:csoundTypeSystemTest> ${TEST_ARGS})

add_executable(csoundMessageBufferTest csound_message_buffer_test.c)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../../H")
target_link_libraries(csoundMessageBufferTest ${CSOUNDLIB} ${CUNIT_LIBRARY})
add_test(NAME TestCsoundMessageBuffer
	COMMAND $<TARGET_FILE:csoundMessageBufferTest> ${TEST_ARGS})
endif()




{'fraction_non_alphanumeric': 0.10022271714922049, 'fraction_numerical': 0.005567928730512249, 'mean_word_length': 10.51923076923077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4856018', 'n_tokens_mistral': 644, 'n_tokens_neox': 616, 'n_words': 97}