2d072f9217
* Add rocprofiler-sdk-utilities.cmake - contains cmake function rocprofiler_sdk_get_gfx_architectures * Update perfetto_reader.py - fix hash collision * Update project names in tests folders - rocprofiler-tests -> rocprofiler-sdk-tests * Fix incorrect allocation-error handling * [CI] Disable openmp tests for navi2, navi3, and navi4 * Suppress leaks by omptarget and llvm --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
28 wiersze
780 B
CMake
28 wiersze
780 B
CMake
#
|
|
# Tests for the common library
|
|
#
|
|
project(rocprofiler-sdk-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
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-headers
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library GTest::gtest
|
|
GTest::gtest_main)
|
|
|
|
gtest_add_tests(
|
|
TARGET common-tests
|
|
SOURCES ${common_sources}
|
|
TEST_LIST common-tests_TESTS
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set_tests_properties(
|
|
${common-tests_TESTS}
|
|
PROPERTIES TIMEOUT 45 LABELS "unittests" FAIL_REGULAR_EXPRESSION
|
|
"${ROCPROFILER_DEFAULT_FAIL_REGEX}")
|