Tests package (#384)
* added packaging for the tests and for the driver.sh * making .sh files into programs so they keep permissions
This commit is contained in:
committad av
GitHub
förälder
cca7872bcf
incheckning
e7269cb925
@@ -255,6 +255,10 @@ if (NOT BUILD_TESTS_ONLY)
|
|||||||
TARGETS roc::rocshmem
|
TARGETS roc::rocshmem
|
||||||
NAMESPACE roc::
|
NAMESPACE roc::
|
||||||
)
|
)
|
||||||
|
include(ROCMPackageConfigHelpers)
|
||||||
|
include(ROCMClients)
|
||||||
|
rocm_package_setup_component(clients)
|
||||||
|
rocm_package_setup_client_component(tests PACKAGE_NAME tests)
|
||||||
|
|
||||||
rocm_create_package(
|
rocm_create_package(
|
||||||
NAME "rocSHMEM"
|
NAME "rocSHMEM"
|
||||||
|
|||||||
@@ -95,6 +95,10 @@ target_compile_definitions(
|
|||||||
$<$<TARGET_EXISTS:PMIx::pmix>:HAVE_PMIX=1>
|
$<$<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(
|
target_link_libraries(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
@@ -119,6 +119,10 @@ set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
|
|||||||
|
|
||||||
FetchContent_MakeAvailable(googletest)
|
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(
|
target_link_libraries(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
Referens i nytt ärende
Block a user