Commit 32da20f4 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

add fix for failing bootstrapping test due to OS-specific random generator

as mentioned in https://github.com/xtensor-stack/xtensor/issues/2629,
the behaviour of the random generator is controlled by the implementation
of the standard library, so it cannot be expected to behave the same
across platforms
1 merge request!3release v0.1.0
Pipeline #43226 failed with stage
in 2 minutes and 14 seconds
Showing with 55 additions and 31 deletions
+55 -31
...@@ -8,6 +8,18 @@ find_package(GTest REQUIRED) ...@@ -8,6 +8,18 @@ find_package(GTest REQUIRED)
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# build # build
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
OPTION(EVALHYD_TESTING_OS "OS system used to run tests")
if(CMAKE_HOST_APPLE)
set(EVALHYD_TESTING_OS "MACOS")
elseif(CMAKE_HOST_WIN32)
set(EVALHYD_TESTING_OS "WINDOWS")
elseif(CMAKE_HOST_UNIX)
set(EVALHYD_TESTING_OS "LINUX")
else()
message(SEND_ERROR "OS not supported to run tests")
endif()
add_executable( add_executable(
evalhyd_tests evalhyd_tests
test_determinist.cpp test_determinist.cpp
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment