Tests package (#384)
* added packaging for the tests and for the driver.sh * making .sh files into programs so they keep permissions
このコミットが含まれているのは:
@@ -255,6 +255,10 @@ if (NOT BUILD_TESTS_ONLY)
|
||||
TARGETS roc::rocshmem
|
||||
NAMESPACE roc::
|
||||
)
|
||||
include(ROCMPackageConfigHelpers)
|
||||
include(ROCMClients)
|
||||
rocm_package_setup_component(clients)
|
||||
rocm_package_setup_client_component(tests PACKAGE_NAME tests)
|
||||
|
||||
rocm_create_package(
|
||||
NAME "rocSHMEM"
|
||||
|
||||
@@ -95,6 +95,10 @@ target_compile_definitions(
|
||||
$<$<TARGET_EXISTS:PMIx::pmix>:HAVE_PMIX=1>
|
||||
)
|
||||
|
||||
configure_file(../../scripts/functional_tests/driver.sh rocshmem_functional_driver.sh COPYONLY)
|
||||
rocm_install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/rocshmem_functional_driver.sh COMPONENT tests DESTINATION ${CMAKE_INSTALL_DATADIR}/rocshmem)
|
||||
rocm_install(TARGETS rocshmem_functional_tests COMPONENT tests)
|
||||
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME}
|
||||
PRIVATE
|
||||
|
||||
@@ -119,6 +119,10 @@ set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
|
||||
|
||||
FetchContent_MakeAvailable(googletest)
|
||||
|
||||
configure_file(../../scripts/unit_tests/driver.sh rocshmem_unit_driver.sh COPYONLY)
|
||||
rocm_install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/rocshmem_unit_driver.sh COMPONENT tests DESTINATION ${CMAKE_INSTALL_DATADIR}/rocshmem)
|
||||
rocm_install(TARGETS rocshmem_unit_tests COMPONENT tests)
|
||||
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME}
|
||||
PRIVATE
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする