Skip to content

Commit c9d7c94

Browse files
committed
ALWAYS run dev tests if OPENCOARRAYS_DEVELOPER T
Override CMake advanced cache variable RUN_DEVELOPER_TESTS if OPENCOARRAYS_DEVELOPER environment variable evaluates to TRUE, (ON, 1, ...)
1 parent 4d651f4 commit c9d7c94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ else()
1414
endif()
1515
mark_as_advanced(RUN_DEVELOPER_TESTS)
1616

17+
if( NOT DEFINED ENV{OPENCOARRAYS_DEVELOPER})
18+
set ( ENV{OPENCOARRAYS_DEVELOPER} FALSE )
19+
endif()
20+
1721
# Name project and specify source languages
1822
# Parse version from .VERSION file so that more info can be added and easier to get from scripts
1923
file( STRINGS ".VERSION" OpenCoarraysVersion
@@ -476,7 +480,7 @@ if(opencoarrays_aware_compiler)
476480
add_mpi_test(register_alloc_comp_1 2 ${tests_root}/unit/init_register/register_alloc_comp_1)
477481
add_mpi_test(register_alloc_comp_2 2 ${tests_root}/unit/init_register/register_alloc_comp_2)
478482
add_mpi_test(register_alloc_comp_3 2 ${tests_root}/unit/init_register/register_alloc_comp_3)
479-
if (RUN_DEVELOPER_TESTS)
483+
if (RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER})
480484
message ( STATUS "Running Developer tests is enabled." )
481485
add_mpi_test(async_comp_alloc 6 ${tests_root}/unit/init_register/async_comp_alloc)
482486
# Timeout async_comp_alloc test after 3 seconds to progess past the known failure
@@ -519,7 +523,7 @@ if(opencoarrays_aware_compiler)
519523
# GFortran PR 78505 only fixed on trunk/gcc 7
520524
add_mpi_test(source-alloc-no-sync 8 ${tests_root}/regression/reported/source-alloc-sync)
521525
endif()
522-
if (RUN_DEVELOPER_TESTS)
526+
if (RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER})
523527
add_mpi_test(convert-before-put 3 ${tests_root}/regression/reported/convert-before-put)
524528
endif()
525529
add_mpi_test(event-post 3 ${tests_root}/regression/reported/event-post)

0 commit comments

Comments
 (0)