<commit_before>set(AKTUALIZR_LITE_SRC main.cc helpers.cc)
set(AKTUALIZR_LITE_HEADERS helpers.h)

if(BUILD_OSTREE)
add_executable(aktualizr-lite ${AKTUALIZR_LITE_SRC})
target_link_libraries(aktualizr-lite aktualizr_lib)

install(TARGETS aktualizr-lite RUNTIME DESTINATION bin COMPONENT aktualizr-lite)

set(TEST_SOURCES test_lite.sh)

add_dependencies(build_tests aktualizr-lite)

add_test(test_aktualizr-lite
    ${CMAKE_CURRENT_SOURCE_DIR}/test_lite.sh
        ${CMAKE_BINARY_DIR}/src/aktualizr_lite/aktualizr-lite
        ${CMAKE_BINARY_DIR}/src/uptane_generator/uptane-generator
        ${PROJECT_SOURCE_DIR}/tests
        ${RUN_VALGRIND}
)
add_library(t_lite-mock SHARED ostree_mock.cc)
add_aktualizr_test(NAME lite-helpers SOURCES helpers.cc helpers_test.cc
                   ARGS ${PROJECT_BINARY_DIR}/ostree_repo)
set_tests_properties(test_lite-helpers PROPERTIES
        ENVIRONMENT LD_PRELOAD=$<TARGET_FILE:t_lite-mock> LABELS "noptest")

endif(BUILD_OSTREE)

aktualizr_source_file_checks(main.cc ${AKTUALIZR_LITE_SRC} ${AKTUALIZR_LITE_HEADERS} helpers_test.cc ostree_mock.cc)
# vim: set tabstop=4 shiftwidth=4 expandtab:<commit_msg>Add missing dependency for test_lite-helpers<commit_after>set(AKTUALIZR_LITE_SRC main.cc helpers.cc)
set(AKTUALIZR_LITE_HEADERS helpers.h)

if(BUILD_OSTREE)
add_executable(aktualizr-lite ${AKTUALIZR_LITE_SRC})
target_link_libraries(aktualizr-lite aktualizr_lib)

install(TARGETS aktualizr-lite RUNTIME DESTINATION bin COMPONENT aktualizr-lite)

set(TEST_SOURCES test_lite.sh)

add_dependencies(build_tests aktualizr-lite)

add_test(test_aktualizr-lite
    ${CMAKE_CURRENT_SOURCE_DIR}/test_lite.sh
        ${CMAKE_BINARY_DIR}/src/aktualizr_lite/aktualizr-lite
        ${CMAKE_BINARY_DIR}/src/uptane_generator/uptane-generator
        ${PROJECT_SOURCE_DIR}/tests
        ${RUN_VALGRIND}
)
add_library(t_lite-mock SHARED ostree_mock.cc)
add_aktualizr_test(NAME lite-helpers SOURCES helpers.cc helpers_test.cc
                   ARGS ${PROJECT_BINARY_DIR}/ostree_repo)
add_dependencies(t_lite-helpers t_lite-mock)
set_tests_properties(test_lite-helpers PROPERTIES
        ENVIRONMENT LD_PRELOAD=$<TARGET_FILE:t_lite-mock> LABELS "noptest")

endif(BUILD_OSTREE)

aktualizr_source_file_checks(main.cc ${AKTUALIZR_LITE_SRC} ${AKTUALIZR_LITE_HEADERS} helpers_test.cc ostree_mock.cc)
# vim: set tabstop=4 shiftwidth=4 expandtab:
{'fraction_non_alphanumeric': 0.08848433530906012, 'fraction_numerical': 0.001693480101608806, 'mean_word_length': 6.29320987654321, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2956224', 'n_tokens_mistral': 985, 'n_tokens_neox': 920, 'n_words': 113}