Skip to content

Commit 9f2926a

Browse files
committed
Disable dev tests w/ OPENCOARRAYS_DEVELOPER=FALSE
- Previously just having OPENCOARRAYS_DEVELOPER *set* would enable dev tests. Now must be set to something that CMake evaluates to true in `if ( <string> )` see `if()` documentation for help
1 parent ed18024 commit 9f2926a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set ( CMAKE_BUILD_TYPE "Release"
77
set_property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
88

99
# Add option and check environment to determine if developer tests should be run
10-
if(DEFINED ENV{OPENCOARRAYS_DEVELOPER})
10+
if($ENV{OPENCOARRAYS_DEVELOPER})
1111
option(RUN_DEVELOPER_TESTS "Run tests intended only for developers" ON)
1212
else()
1313
option(RUN_DEVELOPER_TESTS "Run tests intended only for developers" OFF)
@@ -477,6 +477,7 @@ if(opencoarrays_aware_compiler)
477477
add_mpi_test(register_alloc_comp_2 2 ${tests_root}/unit/init_register/register_alloc_comp_2)
478478
add_mpi_test(register_alloc_comp_3 2 ${tests_root}/unit/init_register/register_alloc_comp_3)
479479
if (RUN_DEVELOPER_TESTS)
480+
message ( STATUS "Running Developer tests is enabled." )
480481
add_mpi_test(async_comp_alloc 6 ${tests_root}/unit/init_register/async_comp_alloc)
481482
# Timeout async_comp_alloc test after 3 seconds to progess past the known failure
482483
set_property(TEST async_comp_alloc PROPERTY TIMEOUT_AFTER_MATCH 3 "known failure")

0 commit comments

Comments
 (0)