Skip to content

Commit 71a24b2

Browse files
committed
Make umf-* prefix for tests instead of umf_test-*
1 parent 7e68cc8 commit 71a24b2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function(build_umf_test)
4646
${ARGN})
4747

4848
set(TEST_NAME umf-${ARG_NAME})
49-
set(TEST_TARGET_NAME umf_test-${ARG_NAME})
49+
set(TEST_TARGET_NAME umf-${ARG_NAME})
5050

5151
set(LIB_DIRS ${LIB_DIRS} ${LIBHWLOC_LIBRARY_DIRS})
5252

@@ -131,7 +131,7 @@ function(add_umf_test)
131131
LIBS ${ARG_LIBS})
132132

133133
set(TEST_NAME umf-${ARG_NAME})
134-
set(TEST_TARGET_NAME umf_test-${ARG_NAME})
134+
set(TEST_TARGET_NAME umf-${ARG_NAME})
135135

136136
add_test(
137137
NAME ${TEST_NAME}
@@ -408,15 +408,15 @@ if(UMF_BUILD_GPU_TESTS AND UMF_BUILD_LEVEL_ZERO_PROVIDER)
408408
SRCS providers/provider_level_zero.cpp
409409
${UMF_UTILS_DIR}/utils_level_zero.cpp ${BA_SOURCES_FOR_TEST}
410410
LIBS ${UMF_UTILS_FOR_TEST})
411-
target_compile_definitions(umf_test-provider_level_zero_dlopen_global
411+
target_compile_definitions(umf-provider_level_zero_dlopen_global
412412
PUBLIC USE_DLOPEN=1 OPEN_ZE_LIBRARY_GLOBAL=1)
413413

414414
add_umf_test(
415415
NAME provider_level_zero_dlopen_local
416416
SRCS providers/provider_level_zero.cpp
417417
${UMF_UTILS_DIR}/utils_level_zero.cpp ${BA_SOURCES_FOR_TEST}
418418
LIBS ${UMF_UTILS_FOR_TEST})
419-
target_compile_definitions(umf_test-provider_level_zero_dlopen_local
419+
target_compile_definitions(umf-provider_level_zero_dlopen_local
420420
PUBLIC USE_DLOPEN=1 OPEN_ZE_LIBRARY_GLOBAL=0)
421421
endif()
422422

@@ -443,15 +443,15 @@ if(UMF_BUILD_GPU_TESTS AND UMF_BUILD_CUDA_PROVIDER)
443443
SRCS providers/provider_cuda.cpp providers/cuda_helpers.cpp
444444
${BA_SOURCES_FOR_TEST}
445445
LIBS ${UMF_UTILS_FOR_TEST})
446-
target_compile_definitions(umf_test-provider_cuda_dlopen_global
446+
target_compile_definitions(umf-provider_cuda_dlopen_global
447447
PUBLIC USE_DLOPEN=1 OPEN_CU_LIBRARY_GLOBAL=1)
448448

449449
add_umf_test(
450450
NAME provider_cuda_dlopen_local
451451
SRCS providers/provider_cuda.cpp providers/cuda_helpers.cpp
452452
${BA_SOURCES_FOR_TEST}
453453
LIBS ${UMF_UTILS_FOR_TEST})
454-
target_compile_definitions(umf_test-provider_cuda_dlopen_local
454+
target_compile_definitions(umf-provider_cuda_dlopen_local
455455
PUBLIC USE_DLOPEN=1 OPEN_CU_LIBRARY_GLOBAL=0)
456456
else()
457457
message(
@@ -506,7 +506,7 @@ if(UMF_PROXY_LIB_ENABLED AND UMF_BUILD_SHARED_LIBRARY)
506506
SRCS ${BA_SOURCES_FOR_TEST} memoryPoolAPI.cpp
507507
malloc_compliance_tests.cpp
508508
LIBS ${UMF_UTILS_FOR_TEST} umf_proxy)
509-
target_compile_definitions(umf_test-proxy_lib_memoryPool
509+
target_compile_definitions(umf-proxy_lib_memoryPool
510510
PUBLIC UMF_PROXY_LIB_ENABLED=1)
511511
endif()
512512

0 commit comments

Comments
 (0)