2023-10-16 13:41:40 -07:00
|
|
|
rocprofiler_deactivate_clang_tidy()
|
|
|
|
|
|
|
|
|
|
include(GoogleTest)
|
|
|
|
|
|
|
|
|
|
set(ROCPROFILER_LIB_PARSER_TEST_SOURCES "parser_test.cpp")
|
|
|
|
|
|
|
|
|
|
add_executable(parser-test)
|
|
|
|
|
|
2024-01-02 19:22:43 -06:00
|
|
|
target_sources(parser-test PRIVATE ${ROCPROFILER_LIB_PARSER_TEST_SOURCES})
|
2023-10-16 13:41:40 -07:00
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
parser-test
|
2024-10-25 11:17:34 -05:00
|
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-static-library GTest::gtest
|
|
|
|
|
GTest::gtest_main)
|
2023-10-16 13:41:40 -07:00
|
|
|
|
|
|
|
|
gtest_add_tests(
|
|
|
|
|
TARGET parser-test
|
|
|
|
|
SOURCES ${ROCPROFILER_LIB_PARSER_TEST_SOURCES}
|
|
|
|
|
TEST_LIST parser-tests_TESTS
|
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
|
|
set_tests_properties(${parser-tests_TESTS} PROPERTIES TIMEOUT 45 LABELS "unittests")
|