2c8e88a76b
* Adding att parser wrapper * Adding ATT tests as optional * Adding decoder API for query capability * Removed samples * Formatting * adding new line * Removed perfetto and moved to static library * using default search for lib * Updated to SDK * Namespace changes * Added tests * Small refactor * Updated API to receive agent_id * Fixing tests * Tidy fixes * Not write to file * Switch to filesystem.hpp * Compilation fixes * Formatting * Tidy fix * Removed likely * Adding tests * Added gfx9 test * Adding gfx12 tests * Formatting * Enable tidy * Fix tests * Fix deadlock on agent test * Workaround ASAN * Moving query outside class. * Fix standalone tool * Addressing comments * Formatting * Change query name * Fixed some tests. Updated PR comments. * Formatting * Improved coverage * Formatting * Fix for comments * Formatting * Adding some description. Fix error type. --------- Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
37 lines
1.3 KiB
CMake
37 lines
1.3 KiB
CMake
#
|
|
#
|
|
#
|
|
project(rocprofiler-att-parser-tests LANGUAGES CXX)
|
|
|
|
add_executable(att-parser-tool-v3)
|
|
target_link_libraries(
|
|
att-parser-tool-v3
|
|
PRIVATE rocprofiler-sdk-att-parser rocprofiler-sdk::rocprofiler-sdk-json
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library)
|
|
target_sources(att-parser-tool-v3 PRIVATE standalone_tool_main.cpp)
|
|
|
|
add_executable(att-decoder-test)
|
|
target_link_libraries(
|
|
att-decoder-test
|
|
PRIVATE rocprofiler-sdk-att-parser
|
|
rocprofiler-sdk::rocprofiler-sdk-json
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
rocprofiler-sdk::rocprofiler-sdk-glog
|
|
rocprofiler-sdk::rocprofiler-sdk-static-library
|
|
GTest::gtest
|
|
GTest::gtest_main)
|
|
target_sources(att-decoder-test PRIVATE att_decoder_test.cpp)
|
|
|
|
add_library(att_decoder_testing SHARED)
|
|
target_sources(att_decoder_testing PRIVATE dummy_decoder.cpp)
|
|
|
|
if(NOT ROCPROFILER_MEMCHECK)
|
|
gtest_add_tests(
|
|
TARGET att-decoder-test
|
|
SOURCES att_decoder_test.cpp
|
|
TEST_LIST att-decoder-test_TESTS
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
set_tests_properties(${att-decoder-test_TESTS} PROPERTIES TIMEOUT 10 LABELS
|
|
"unittests")
|
|
endif()
|