ba0eb11e96
* Cleanup and reorg of lib/common - remove stale code in helper.cpp - move helper.hpp to demangle.hpp - move helper.cpp to demangle.cpp - update CMakeLists.txt with new filenames - fix includes in config.cpp * Remove log.hpp and join.hpp - replace with glog and fmt * Update lib/common/environment - move implementation functions into cpp file * Common library tests - tests for demangling - tests for mpl (template metaprogramming) - tests for environment
24 wiersze
664 B
CMake
24 wiersze
664 B
CMake
#
|
|
# 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
|
|
PRIVATE rocprofiler::rocprofiler-headers rocprofiler::rocprofiler-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")
|