Do not install the test binaries or their CTestTestfile.

Regenerated from hipCUB-7.2.0-no-tests-install.patch for ROCm 10.0 (verified
2026-08-30): both blocks survive verbatim but moved, and the trailing
rocm_install(FILES ...) is no longer trailing -- 10.0 appends a
generate_resource_spec install after it -- so the old end-of-file hunk could
not apply. Behaviour is unchanged.
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -58,7 +58,6 @@
         ENVIRONMENT "LLVM_PROFILE_FILE=${PROFILE_DIR}/profraw/hipcub-coverage_%m.profraw"
       )
     endif()
-    rocm_install(TARGETS ${test_target} COMPONENT tests)
     file(APPEND "${INSTALL_TEST_FILE}" "add_test(${test_name} \"../${EXE_NAME}\")\n")
     # Set the resource group for the test. This must correspond to a gfxID present in resources.json.
     file(APPEND "${INSTALL_TEST_FILE}" "set_tests_properties([=[${test_name}]=] PROPERTIES RESOURCE_GROUPS \"1,${resource_group}:1\")\n")
@@ -171,13 +170,6 @@
 endif()
 
 
-rocm_install(
-    FILES "${INSTALL_TEST_FILE}"
-    DESTINATION "${CMAKE_INSTALL_BINDIR}/${PROJECT_NAME}"
-    COMPONENT tests
-    RENAME "CTestTestfile.cmake"
-)
-
 # Install the executable using the standard install command instead of rocm_install
 # since we want to put it in a custom DESTINATION (rocm_install does not support
 # the DESTINATION option for TARGETS).
