<commit_before>FILE(COPY
    test_unit.py
    test_observer.py
    conftest.py
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
)

# VideoSourceFactory
SET(VIDEO_SOURCE_FACTORY_TEST test_video_source_factory_blackmagic_decklinksdi4k)
ADD_EXECUTABLE(
    ${VIDEO_SOURCE_FACTORY_TEST}
    ${CMAKE_SOURCE_DIR}/tests/blackmagic/decklinksdi4k/test_video_source_factory.cpp
)
TARGET_LINK_LIBRARIES(
    ${VIDEO_SOURCE_FACTORY_TEST}
    ${LIBS} ${NAME}
)
foreach(COLOUR_SPACE ${COLOUR_SPACES})
    SET(NAME_TEST Test_Blackmagic_DeckLinkSDI4K_VideoSourceFactory_${COLOUR_SPACE})
    ADD_TEST(NAME ${NAME_TEST}
        COMMAND ${VIDEO_SOURCE_FACTORY_TEST} ${COLOUR_SPACE}
    )
    LIST(APPEND TESTS_LIST ${NAME_TEST})
endforeach(COLOUR_SPACE)

# Blackmagic DeckLink SDI 4K on its own
foreach(COLOUR_SPACE ${COLOUR_SPACES})
    SET(NAME_TEST Test_Blackmagic_DeckLinkSDI4K_${COLOUR_SPACE})
    ADD_TEST(NAME ${NAME_TEST}
        COMMAND py.test --colour-space=${COLOUR_SPACE} test_unit.py
    )
    LIST(APPEND TESTS_LIST ${NAME_TEST})
endforeach(COLOUR_SPACE)

# Blackmagic DeckLink SDI 4K using the observer design pattern
foreach(COLOUR_SPACE ${COLOUR_SPACES})
    SET(NAME_TEST Test_Blackmagic_DeckLinkSDI4K_ObserverPattern_${COLOUR_SPACE})
    ADD_TEST(NAME ${NAME_TEST}
        COMMAND py.test --colour-space=${COLOUR_SPACE} --frame-rate=${FRAME_RATE} --observers=3 test_observer.py
    )
    LIST(APPEND TESTS_LIST ${NAME_TEST})<commit_msg>Issue #5: added missing frame rate specification to Blackmagic test configuration<commit_after>FILE(COPY
    test_unit.py
    test_observer.py
    conftest.py
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
)

# VideoSourceFactory
SET(VIDEO_SOURCE_FACTORY_TEST test_video_source_factory_blackmagic_decklinksdi4k)
ADD_EXECUTABLE(
    ${VIDEO_SOURCE_FACTORY_TEST}
    ${CMAKE_SOURCE_DIR}/tests/blackmagic/decklinksdi4k/test_video_source_factory.cpp
)
TARGET_LINK_LIBRARIES(
    ${VIDEO_SOURCE_FACTORY_TEST}
    ${LIBS} ${NAME}
)
foreach(COLOUR_SPACE ${COLOUR_SPACES})
    SET(NAME_TEST Test_Blackmagic_DeckLinkSDI4K_VideoSourceFactory_${COLOUR_SPACE})
    ADD_TEST(NAME ${NAME_TEST}
        COMMAND ${VIDEO_SOURCE_FACTORY_TEST} ${COLOUR_SPACE}
    )
    LIST(APPEND TESTS_LIST ${NAME_TEST})
endforeach(COLOUR_SPACE)

# Blackmagic DeckLink SDI 4K on its own
foreach(COLOUR_SPACE ${COLOUR_SPACES})
    SET(NAME_TEST Test_Blackmagic_DeckLinkSDI4K_${COLOUR_SPACE})
    ADD_TEST(NAME ${NAME_TEST}
        COMMAND py.test --colour-space=${COLOUR_SPACE} test_unit.py
    )
    LIST(APPEND TESTS_LIST ${NAME_TEST})
endforeach(COLOUR_SPACE)

# Blackmagic DeckLink SDI 4K using the observer design pattern
foreach(COLOUR_SPACE ${COLOUR_SPACES})
    SET(NAME_TEST Test_Blackmagic_DeckLinkSDI4K_ObserverPattern_${COLOUR_SPACE})
    SET(FRAME_RATE 57)
    ADD_TEST(NAME ${NAME_TEST}
        COMMAND py.test --colour-space=${COLOUR_SPACE} --frame-rate=${FRAME_RATE} --observers=3 test_observer.py
    )
    LIST(APPEND TESTS_LIST ${NAME_TEST})
{'fraction_non_alphanumeric': 0.09475465313028765, 'fraction_numerical': 0.006429780033840948, 'mean_word_length': 5.702947845804989, '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': '928776', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1094, 'n_words': 159}