Skip to content

Commit 95093f3

Browse files
committed
Update tests with MIN_IMAGES property
- Fixes #461 (hopefully, no good way to test)
1 parent 47dfef0 commit 95093f3

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed

src/tests/unit/events/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
caf_compile_executable(allocatable_p2p_event_post allocatable_p2p_event_post.f90)
2+
set_target_properties(build_allocatable_p2p_event_post
3+
PROPERTIES MIN_IMAGES 4
4+
)
25
caf_compile_executable(static_event_post_issue_293 static_event_post_issue_293.f90)
6+
set_target_properties(build_static_event_post_issue_293
7+
PROPERTIES MIN_IMAGES 3
8+
)

src/tests/unit/fail_images/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ caf_compile_executable(image_fail_and_status_test_1 image_fail_and_status_test_1
1010
caf_compile_executable(image_fail_and_get_test_1 image_fail_and_get_test_1.f90)
1111
caf_compile_executable(image_fail_and_failed_images_test_1 image_fail_and_failed_images_test_1.f90)
1212
caf_compile_executable(image_fail_and_stopped_images_test_1 image_fail_and_stopped_images_test_1.f90)
13+
set_target_properties(build_image_fail_test_1
14+
build_image_fail_and_sync_test_1
15+
build_image_fail_and_sync_test_2
16+
build_image_fail_and_sync_test_3
17+
build_image_fail_and_status_test_1
18+
build_image_fail_and_get_test_1
19+
build_image_fail_and_failed_images_test_1
20+
build_image_fail_and_stopped_images_test_1
21+
PROPERTIES MIN_IMAGES 3)

src/tests/unit/init_register/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
caf_compile_executable(initialize_mpi initialize_mpi.F90)
22
caf_compile_executable(register register.f90)
3+
set_target_properties(build_register
4+
PROPERTIES MIN_IMAGES 2)
35
caf_compile_executable(register_vector register_vector.f90)
46
caf_compile_executable(register_alloc_vector register_alloc_vector.f90)
57
caf_compile_executable(allocate_as_barrier allocate_as_barrier.f90)
68
caf_compile_executable(allocate_as_barrier_proc allocate_as_barrier_proc.f90)
79

810
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0))
911
caf_compile_executable(async_comp_alloc async_comp_alloc.f90)
12+
set_target_properties(build_async_comp_alloc
13+
PROPERTIES MIN_IMAGES 2)
1014
caf_compile_executable(async_comp_alloc_2 async_comp_alloc_2.f90)
1115
caf_compile_executable(register_alloc_comp_1 register_alloc_comp_1.f90)
1216
caf_compile_executable(register_alloc_comp_2 register_alloc_comp_2.f90)

src/tests/unit/send-get/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ caf_compile_executable(get_with_offset_1d get_with_offset_1d.f90)
99
caf_compile_executable(whole_get_array whole_get_array.f90)
1010
caf_compile_executable(strided_get strided_get.f90)
1111
caf_compile_executable(strided_sendget strided_sendget.f90)
12+
set_target_properties(build_strided_sendget
13+
PROPERTIES MIN_IMAGES 3)

src/tests/unit/sync/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ caf_compile_executable(syncimages2 syncimages2.f90)
44
caf_compile_executable(duplicate_syncimages duplicate_syncimages.f90)
55
caf_compile_executable(syncimages_status syncimages_status.f90)
66
caf_compile_executable(sync_image_ring_abort_on_stopped_image sync_image_ring_abort_on_stopped_image.f90)
7+
set_target_properties(build_sync_image_ring_abort_on_stopped_image
8+
PROPERTIES MIN_IMAGES 3)

src/tests/unit/sync/sync_image_ring_abort_on_stopped_image.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ program sync_image_ring_abort_on_stopped_image
1010

1111
integer :: stat_var = 0
1212

13-
if (num_images() .lt. 2) error stop "Need at least two images to test."
13+
if (num_images() .lt. 3) error stop "Need at least three images to test."
1414

1515
associate (me => this_image())
1616
if (me == 1) then

0 commit comments

Comments
 (0)