# This file was generated by the YaTool build system (https://github.com/yandex/yatool),
# from a source YaTool build configuration provided in ya.make files.
#
# If the repository supports both CMake and ya build configurations, please modify both of them.
#
# If only CMake build configuration is supported then modify only CMake files and note that only
# simple modifications are allowed like adding source-files to targets or adding simple properties
# like target_include_directories. These modifications will be ported to original ya.make files
# by maintainers. Any complex modifications which can't be easily ported back to the ya build
# system may be rejected.
#
# Please refer to the build instructions in the repository for more information about manual
# changes in this file.

add_executable(util-string-ut)


target_link_libraries(util-string-ut PUBLIC
  contrib-libs-cxxsupp
  yutil
  build-cow-on
  library-cpp-cpuid_check
  cpp-testing-unittest_main
)

target_allocator(util-string-ut
  system_allocator
)

target_sources(util-string-ut PRIVATE
  ${PROJECT_SOURCE_DIR}/util/string/builder_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/cast_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/escape_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/join_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/hex_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/printf_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/split_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/strip_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/strspn_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/subst_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/type_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/util_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/vector_ut.cpp
  ${PROJECT_SOURCE_DIR}/util/string/ascii_ut.cpp
)


set_property(
  TARGET
  util-string-ut
  PROPERTY
  SPLIT_FACTOR
  1
)

add_yunittest(
  NAME
  util-string-ut
  TEST_TARGET
  util-string-ut
  TEST_ARG
  --print-before-suite
  --print-before-test
  --fork-tests
  --print-times
  --show-fails
)

set_yunittest_property(
  TEST
  util-string-ut
  PROPERTY
  LABELS
  SMALL
)

set_yunittest_property(
  TEST
  util-string-ut
  PROPERTY
  ENVIRONMENT
)

vcs_info(util-string-ut)

set_yunittest_property(
  TEST
  util-string-ut
  PROPERTY
  PROCESSORS
  1
)
