Files
rocm-systems/source/lib/rocprofiler-sdk/pc_sampling/tests/CMakeLists.txt
T

30 lines
1.0 KiB
CMake
Raw Normal View History

2024-05-24 09:49:44 -05:00
rocprofiler_deactivate_clang_tidy()
include(GoogleTest)
set(ROCPROFILER_LIB_PC_SAMPLING_TEST_SOURCES
2024-05-31 20:14:29 +02:00
configure_service.cpp cid_manager.cpp
2024-05-24 09:49:44 -05:00
# samples_processing.cpp
pc_sampling_vs_counter_collection.cpp query_configuration.cpp)
2024-05-24 09:49:44 -05:00
set(ROCPROFILER_LIB_PC_SAMPLING_TEST_HEADERS pc_sampling_internals.hpp)
add_executable(pcs-test)
target_sources(pcs-test PRIVATE ${ROCPROFILER_LIB_PC_SAMPLING_TEST_SOURCES}
${ROCPROFILER_LIB_PC_SAMPLING_TEST_HEADERS})
target_link_libraries(
pcs-test
PRIVATE rocprofiler-sdk::rocprofiler-common-library
rocprofiler-sdk::rocprofiler-static-library GTest::gtest GTest::gtest_main)
2024-05-24 09:49:44 -05:00
gtest_add_tests(
TARGET pcs-test
SOURCES ${ROCPROFILER_LIB_COUNTER_TEST_SOURCES}
TEST_LIST pcs-tests_TESTS
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set_tests_properties(
${pcs-tests_TESTS} PROPERTIES TIMEOUT 45 LABELS "unittests;pc-sampling"
SKIP_REGULAR_EXPRESSION "PC sampling unavailable")