Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore system-wide installed HWLOC for test/conformance_arena_constraints #1621

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,21 @@ function(tbb_add_tbbbind_test)
endif()
ProcessorCount(SYSTEM_CONCURRENCY)

if (UNIX AND NOT TARGET stubhwloc AND NOT TBB_TCM_TESTING)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/stubhwloc.cpp "int main(){}")
add_library(stubhwloc SHARED ${CMAKE_CURRENT_BINARY_DIR}/stubhwloc.cpp)
set_target_properties(stubhwloc PROPERTIES OUTPUT_NAME "hwloc" SOVERSION 15)
endif()

set_tests_properties(${_tbbbind_test_NAME} PROPERTIES
PASS_REGULAR_EXPRESSION "oneTBB: TBBBIND.*UNAVAILABLE"
FAIL_REGULAR_EXPRESSION "Status:.*FAILURE"
)

if (TARGET stubhwloc)
target_link_libraries(${_tbbbind_test_NAME} PRIVATE stubhwloc)
endif()

if (TARGET HWLOC::hwloc_2_5 AND NOT HWLOC_2_5_TESTS_STATUS_SHOWN)
message(STATUS "HWLOC 2.5 dependent tests were enabled.")
set(HWLOC_2_5_TESTS_STATUS_SHOWN TRUE PARENT_SCOPE)
Expand Down
Loading