@@ -5,6 +5,12 @@ set ( CMAKE_CONFIGURATION_TYPES "Debug" "Release" "MinSizeRel" "RelWithDebInfo"
5
5
set ( CMAKE_BUILD_TYPE "Release"
6
6
CACHE STRING "Select which configuration to build." )
7
7
set_property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
8
+ message ( STATUS
9
+ "
10
+ ============================================================
11
+ Building OpenCoarrays configuration: ${CMAKE_BUILD_TYPE}
12
+ ============================================================
13
+ " )
8
14
9
15
# Add option and check environment to determine if developer tests should be run
10
16
if ($ENV{OPENCOARRAYS_DEVELOPER} )
@@ -622,7 +628,7 @@ endfunction(add_caf_test)
622
628
623
629
if (opencoarrays_aware_compiler )
624
630
if (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} )
625
- message ( STATUS "Running Developer tests is enabled." )
631
+ message ( STATUS "Running Developer tests is enabled. Some tests may fail for open issues. " )
626
632
endif ()
627
633
# Unit tests targeting each libcaf_mpi function, argument, and branch of code
628
634
add_caf_test (initialize_mpi 2 initialize_mpi )
@@ -645,13 +651,46 @@ if(opencoarrays_aware_compiler)
645
651
add_caf_test (comp_allocated_1 2 comp_allocated_1 )
646
652
add_caf_test (comp_allocated_2 2 comp_allocated_2 )
647
653
endif ()
654
+
655
+
656
+ if (gfortran_compiler )
657
+ if ((NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 ) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ))
658
+ add_caf_test (send_convert_nums 2 send_convert_nums )
659
+ add_caf_test (sendget_convert_nums 3 sendget_convert_nums )
660
+ add_caf_test (sendget_convert_char_array 3 sendget_convert_char_array )
661
+ else ()
662
+ message ( AUTHOR_WARNING "Skipping the following tests due to GFortran < 7.0.0 lack of compatibility:
663
+ sendget_convert_nums.f90
664
+ sendget_convert_char_array.f90
665
+ send_convert_nums.f90" )
666
+ endif ()
667
+ if ((NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.3.0 ) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ))
668
+ add_caf_test (send_convert_char_array 2 send_convert_char_array )
669
+ else ()#if((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER}))
670
+ message ( AUTHOR_WARNING "Skipping the following tests to GFortran < 7.3.0 lack of compatibility:
671
+ send_convert_char_array.f90" )
672
+ endif ()
673
+ endif ()
674
+
675
+ # Pure get tests
648
676
add_caf_test (get_array 2 get_array )
649
677
add_caf_test (get_self 2 get_self )
650
- add_caf_test (send_array 2 send_array )
678
+ add_caf_test (get_convert_nums 2 get_convert_nums )
679
+ add_caf_test (get_convert_char_array 2 get_convert_char_array )
651
680
add_caf_test (get_with_offset_1d 2 get_with_offset_1d )
652
681
add_caf_test (whole_get_array 2 whole_get_array )
653
682
add_caf_test (strided_get 2 strided_get )
683
+
684
+ # Pure send tests
685
+ add_caf_test (send_array 2 send_array )
686
+ add_caf_test (convert-before-put 3 convert-before-put )
687
+ add_caf_test (send_with_vector_index 2 send_with_vector_index )
688
+
689
+ # Pure sendget tests
654
690
add_caf_test (strided_sendget 3 strided_sendget )
691
+ add_caf_test (get_with_vector_index 4 get_with_vector_index )
692
+
693
+
655
694
add_caf_test (co_sum 4 co_sum_test )
656
695
add_caf_test (co_broadcast 4 co_broadcast_test )
657
696
add_caf_test (co_min 4 co_min_test )
@@ -686,10 +725,18 @@ if(opencoarrays_aware_compiler)
686
725
endif ()
687
726
688
727
# Open GCC 7 regressions
689
- if ((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ) OR (gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 )))
690
- add_caf_test (convert-before-put 3 convert-before-put )
691
- add_caf_test (put-alloc-comp 2 issue-422-send )
692
- add_caf_test (get -put-alloc-comp 3 issue-422-send-get )
728
+ if ((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ) OR
729
+ (gfortran_compiler AND (
730
+ (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 ) OR
731
+ (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.3.0 )
732
+ )))
733
+ add_caf_test (put-allocatable-coarray-comp 2 issue-422-send )
734
+ add_caf_test (get -put-allocatable-comp 3 issue-422-send-get )
735
+ else ()
736
+ message ( AUTHOR_WARNING
737
+ "Skipping regressions in GFortran 7.0:
738
+ put-allocatable-coarray-comp (issue-422)
739
+ get-put-allocatable-comp (issue-422)" )
693
740
endif ()
694
741
695
742
add_caf_test (allocatable_p2p_event_post 4 allocatable_p2p_event_post )
0 commit comments