Always enable all tests for ovni-rt

This commit is contained in:
Rodrigo Arias 2023-05-30 18:16:08 +02:00
parent 9814abbcdf
commit 64c2d52a7a
5 changed files with 27 additions and 5 deletions

View File

@ -19,6 +19,7 @@ set(CMAKE_C_STANDARD_REQUIRED TRUE)
set(CMAKE_C_EXTENSIONS FALSE) set(CMAKE_C_EXTENSIONS FALSE)
option(ENABLE_DEBUG_LOG "Enable debug messages (very verbose)") option(ENABLE_DEBUG_LOG "Enable debug messages (very verbose)")
option(ENABLE_ALL_TESTS "Forces the execution of all tests")
if(ENABLE_DEBUG_LOG) if(ENABLE_DEBUG_LOG)
add_definitions(-DENABLE_DEBUG) add_definitions(-DENABLE_DEBUG)

View File

@ -82,6 +82,7 @@ let
last.nodes last.nodes
pkgs.strace pkgs.strace
]; ];
cmakeFlags = old.cmakeFlags ++ [ "-DENABLE_ALL_TESTS=ON" ];
preConfigure = old.preConfigure + '' preConfigure = old.preConfigure + ''
export NODES_HOME="${last.nodes}" export NODES_HOME="${last.nodes}"
export NANOS6_HOME="${last.nanos6}" export NANOS6_HOME="${last.nanos6}"

View File

@ -6,12 +6,20 @@ find_package(Nanos6)
include(CheckCCompilerFlag) include(CheckCCompilerFlag)
check_c_compiler_flag("-fompss-2" HAVE_FOMPSS2_FLAG) check_c_compiler_flag("-fompss-2" HAVE_FOMPSS2_FLAG)
if(NOT 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() return()
endif() endif()
if(NOT NANOS6_FOUND) 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() return()
else() else()
message(STATUS "Enabling Nanos6 RT tests") message(STATUS "Enabling Nanos6 RT tests")

View File

@ -6,12 +6,20 @@ find_package(Nodes)
include(CheckCCompilerFlag) include(CheckCCompilerFlag)
check_c_compiler_flag("-fompss-2" HAVE_FOMPSS2_FLAG) check_c_compiler_flag("-fompss-2" HAVE_FOMPSS2_FLAG)
if(NOT 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() return()
endif() endif()
if(NOT NODES_FOUND) 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() return()
else() else()
message(STATUS "Enabling NODES RT tests") message(STATUS "Enabling NODES RT tests")

View File

@ -7,7 +7,11 @@ find_path(NOSV_INCLUDE_DIR nosv.h)
check_library_exists(nosv nosv_init "nosv.h" HAVE_NOSV) check_library_exists(nosv nosv_init "nosv.h" HAVE_NOSV)
if(NOT 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() return()
else() else()
message(STATUS "Enabling nOS-V RT tests") message(STATUS "Enabling nOS-V RT tests")