2023-08-30 22:31:36 -05:00
|
|
|
#
|
|
|
|
|
# Tests for the common library
|
|
|
|
|
#
|
|
|
|
|
project(rocprofiler-tests-common LANGUAGES C CXX)
|
|
|
|
|
|
|
|
|
|
include(GoogleTest)
|
|
|
|
|
|
|
|
|
|
set(common_sources demangling.cpp environment.cpp mpl.cpp)
|
|
|
|
|
|
|
|
|
|
add_executable(common-tests)
|
|
|
|
|
target_sources(common-tests PRIVATE ${common_sources})
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
common-tests
|
2024-10-25 11:17:34 -05:00
|
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-headers
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library GTest::gtest
|
|
|
|
|
GTest::gtest_main)
|
2023-08-30 22:31:36 -05:00
|
|
|
|
|
|
|
|
gtest_add_tests(
|
|
|
|
|
TARGET common-tests
|
|
|
|
|
SOURCES ${common_sources}
|
|
|
|
|
TEST_LIST common-tests_TESTS
|
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
2025-02-06 08:55:57 -06:00
|
|
|
set_tests_properties(
|
|
|
|
|
${common-tests_TESTS}
|
|
|
|
|
PROPERTIES TIMEOUT 45 LABELS "unittests" FAIL_REGULAR_EXPRESSION
|
|
|
|
|
"${ROCPROFILER_DEFAULT_FAIL_REGEX}")
|