Always enable all tests for ovni-rt
This commit is contained in:
parent
9814abbcdf
commit
64c2d52a7a
@ -19,6 +19,7 @@ set(CMAKE_C_STANDARD_REQUIRED TRUE)
|
||||
set(CMAKE_C_EXTENSIONS FALSE)
|
||||
|
||||
option(ENABLE_DEBUG_LOG "Enable debug messages (very verbose)")
|
||||
option(ENABLE_ALL_TESTS "Forces the execution of all tests")
|
||||
|
||||
if(ENABLE_DEBUG_LOG)
|
||||
add_definitions(-DENABLE_DEBUG)
|
||||
|
@ -82,6 +82,7 @@ let
|
||||
last.nodes
|
||||
pkgs.strace
|
||||
];
|
||||
cmakeFlags = old.cmakeFlags ++ [ "-DENABLE_ALL_TESTS=ON" ];
|
||||
preConfigure = old.preConfigure + ''
|
||||
export NODES_HOME="${last.nodes}"
|
||||
export NANOS6_HOME="${last.nanos6}"
|
||||
|
@ -6,12 +6,20 @@ find_package(Nanos6)
|
||||
include(CheckCCompilerFlag)
|
||||
check_c_compiler_flag("-fompss-2" HAVE_FOMPSS2_FLAG)
|
||||
if(NOT HAVE_FOMPSS2_FLAG)
|
||||
message(STATUS "Compiler doesn't support -fompss-2 flag, disabling Nanos6 RT tests")
|
||||
if(ENABLE_ALL_TESTS)
|
||||
message(FATAL_ERROR "Compiler doesn't support -fompss-2 flag, cannot enable Nanos6 RT tests")
|
||||
else()
|
||||
message(STATUS "Compiler doesn't support -fompss-2 flag, disabling Nanos6 RT tests")
|
||||
endif()
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT NANOS6_FOUND)
|
||||
message(STATUS "Nanos6 not found, disabling Nanos6 RT tests")
|
||||
if(ENABLE_ALL_TESTS)
|
||||
message(FATAL_ERROR "Nanos6 not found, cannot enable Nanos6 RT tests")
|
||||
else()
|
||||
message(STATUS "Nanos6 not found, disabling Nanos6 RT tests")
|
||||
endif()
|
||||
return()
|
||||
else()
|
||||
message(STATUS "Enabling Nanos6 RT tests")
|
||||
|
@ -6,12 +6,20 @@ find_package(Nodes)
|
||||
include(CheckCCompilerFlag)
|
||||
check_c_compiler_flag("-fompss-2" HAVE_FOMPSS2_FLAG)
|
||||
if(NOT HAVE_FOMPSS2_FLAG)
|
||||
message(STATUS "Compiler doesn't support -fompss-2 flag, disabling NODES RT tests")
|
||||
if(ENABLE_ALL_TESTS)
|
||||
message(FATAL_ERROR "Compiler doesn't support -fompss-2 flag, cannot enable NODES RT tests")
|
||||
else()
|
||||
message(STATUS "Compiler doesn't support -fompss-2 flag, disabling NODES RT tests")
|
||||
endif()
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT NODES_FOUND)
|
||||
message(STATUS "NODES not found, disabling NODES RT tests")
|
||||
if(ENABLE_ALL_TESTS)
|
||||
message(FATAL_ERROR "NODES not found, cannot enable NODES RT tests")
|
||||
else()
|
||||
message(STATUS "NODES not found, disabling NODES RT tests")
|
||||
endif()
|
||||
return()
|
||||
else()
|
||||
message(STATUS "Enabling NODES RT tests")
|
||||
|
@ -7,7 +7,11 @@ find_path(NOSV_INCLUDE_DIR nosv.h)
|
||||
check_library_exists(nosv nosv_init "nosv.h" HAVE_NOSV)
|
||||
|
||||
if(NOT HAVE_NOSV)
|
||||
message(STATUS "nOS-V library not found, disabling nOS-V RT tests")
|
||||
if(ENABLE_ALL_TESTS)
|
||||
message(FATAL_ERROR "nOS-V library not found, cannot enable nOS-V RT tests")
|
||||
else()
|
||||
message(STATUS "nOS-V library not found, disabling nOS-V RT tests")
|
||||
endif()
|
||||
return()
|
||||
else()
|
||||
message(STATUS "Enabling nOS-V RT tests")
|
||||
|
Loading…
Reference in New Issue
Block a user