Skip to content

Commit

Permalink
CMake: disable porttests when running tests under simulator
Browse files Browse the repository at this point in the history
Since port tests are known to fail (due to limitations of the simulator),
this commit disables port tests in cross-compilation builds.

Signed-off-by: Jan Vrany <jan.vrany@fit.cvut.cz>
  • Loading branch information
janvrany committed Feb 1, 2021
1 parent 0d07238 commit bd501fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fvtest/porttest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if(OMR_HOST_OS STREQUAL "aix")
PRIVATE
${OMR_PLATFORM_SHARED_COMPILE_OPTIONS}
)

set_target_properties(aixbaddep
PROPERTIES
LINK_FLAGS "-bI:${CMAKE_CURRENT_SOURCE_DIR}/aixbaddep/dummy.imp"
Expand All @@ -136,10 +136,10 @@ if(OMR_HOST_OS STREQUAL "aix")
)
endif()

if (NOT OMR_HOST_OS STREQUAL "aix" AND NOT OMR_HOST_OS STREQUAL "zos")
if (NOT OMR_HOST_OS STREQUAL "aix" AND NOT OMR_HOST_OS STREQUAL "zos" AND NOT CMAKE_CROSSCOMPILING)
omr_add_test(
NAME porttest
COMMAND $<TARGET_FILE:omrporttest> --gtest_output=xml:${CMAKE_CURRENT_BINARY_DIR}/omrporttest-results.xml
COMMAND $<TARGET_FILE:omrporttest> --gtest_output=xml:${CMAKE_CURRENT_BINARY_DIR}/omrporttest-results.xml --gtest_filter=${porttest_filter}
)
endif()

Expand Down

0 comments on commit bd501fb

Please sign in to comment.