<commit_before>add_executable(testbuzzdarray testbuzzdarray.c)
target_link_libraries(testbuzzdarray buzz)

add_executable(testbuzzdict testbuzzdict.c)
target_link_libraries(testbuzzdict buzz)

add_executable(testbuzzmsg testbuzzmsg.c)
target_link_libraries(testbuzzmsg buzz)

add_executable(testbuzzlex ../buzz/buzzlex.h ../buzz/buzzlex.c testbuzzlex.c)
target_link_libraries(testbuzzlex buzz)

add_executable(testbuzz ../buzz/buzzasm.h ../buzz/buzzasm.c ../buzz/buzzdebug.h ../buzz/buzzdebug.c testbuzz.c)
target_link_libraries(testbuzz buzz)<commit_msg>Added compilation of script examples to CMake.<commit_after>#
# Test programs
#

add_executable(testbuzzdarray testbuzzdarray.c)
target_link_libraries(testbuzzdarray buzz)

add_executable(testbuzzdict testbuzzdict.c)
target_link_libraries(testbuzzdict buzz)

add_executable(testbuzzmsg testbuzzmsg.c)
target_link_libraries(testbuzzmsg buzz)

add_executable(testbuzzlex ../buzz/buzzlex.h ../buzz/buzzlex.c testbuzzlex.c)
target_link_libraries(testbuzzlex buzz)

add_executable(testbuzz ../buzz/buzzasm.h ../buzz/buzzasm.c ../buzz/buzzdebug.h ../buzz/buzzdebug.c testbuzz.c)
target_link_libraries(testbuzz buzz)

#
# Test scripts
#

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/utility)
set(BUZZ_COMPILER ${CMAKE_SOURCE_DIR}/utility/bzzc)
set(BUZZ_PARSER ${CMAKE_BINARY_DIR}/buzz/bzzparse)
set(BUZZ_ASSEMBLER ${CMAKE_BINARY_DIR}/buzz/bzzasm)
include(UseBuzz)
set(BUZZ_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

make_buzz(test_takeoff_divide_flock.bzz)
make_buzz(testbehavior.bzz)
make_buzz(testclosure.bzz)
make_buzz(testflocking.bzz)
make_buzz(testgradient.bzz)
make_buzz(testinclude1.bzz)
make_buzz(testinclude2.bzz)
make_buzz(testmath.bzz)
make_buzz(testneighbors.bzz)
make_buzz(testparsing.bzz)
make_buzz(teststigmergy.bzz)
make_buzz(testswarm.bzz)
make_buzz(testtable.bzz)
make_buzz(testwhile.bzz)
{'fraction_non_alphanumeric': 0.10745140388768898, 'fraction_numerical': 0.0010799136069114472, 'mean_word_length': 8.454081632653061, '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': '2614644', 'n_tokens_mistral': 799, 'n_tokens_neox': 774, 'n_words': 87}