<commit_before>include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/)

set(BREAKPAD_LIBS breakpad)
if (APPLE)
  find_library(APPLICATIONSERVICES_LIB ApplicationServices)
  find_library(FOUNDATION_LIB Foundation)
  set(BREAKPAD_LIBS ${BREAKPAD_LIBS} ${FOUNDATION_LIB} ${APPLICATIONSERVICES_LIB})
endif()

add_executable(buggy_app buggy_app.cc)
target_link_libraries(buggy_app ${BREAKPAD_LIBS})

if (UNIX)
  # the test currently relies on minidump_stackwalk which is currently only built
  # under Linux/Mac
  add_test(stacktrace_test python ${CMAKE_CURRENT_SOURCE_DIR}/stacktrace_test.py
           WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()<commit_msg>Ensure that test app for breakpad test is always built with some debug info<commit_after>include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/)

set(BREAKPAD_LIBS breakpad)
if (APPLE)
  find_library(APPLICATIONSERVICES_LIB ApplicationServices)
  find_library(FOUNDATION_LIB Foundation)
  set(BREAKPAD_LIBS ${BREAKPAD_LIBS} ${FOUNDATION_LIB} ${APPLICATIONSERVICES_LIB})
endif()

add_executable(buggy_app buggy_app.cc)
target_link_libraries(buggy_app ${BREAKPAD_LIBS})

# the test app must be built with at least basic
# debug info in order to successfully extract function
# names from it
if (UNIX)
  set_target_properties(buggy_app PROPERTIES COMPILE_FLAGS -g)
endif()

if (UNIX)
  # the test currently relies on minidump_stackwalk which is currently only built
  # under Linux/Mac
  add_test(stacktrace_test python ${CMAKE_CURRENT_SOURCE_DIR}/stacktrace_test.py
           WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()
{'fraction_non_alphanumeric': 0.08020050125313283, 'fraction_numerical': 0.0, 'mean_word_length': 7.025125628140704, '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': '7433288', 'n_tokens_mistral': 565, 'n_tokens_neox': 532, 'n_words': 118}