SWDEV-238517 - [dtest] Catch2 multiprocess tests for device files.

Changes contain Catch2 device multiprocess tests which were covered under "hip/tests/src/runtimeApi/device" and some additional tests. These test files makes use of fork call or sets visible devices env variable and validates various device aspects.

Change-Id: Iaaca37598d386104da9e5f37f92ab176bc8a2845


[ROCm/hip-tests commit: 9798817ca0]
Este commit está contenido en:
sumanthtg
2021-07-07 12:49:13 +05:30
cometido por Sumanth Tumbalam Gooty
padre c7529444dc
commit 05c10a4713
Se han modificado 10 ficheros con 1547 adiciones y 3 borrados
@@ -37,9 +37,15 @@ catch_discover_tests(ABMTests PROPERTIES SKIP_REGULAR_EXPRESSION "HIP_SKIP_THIS
add_dependencies(build_tests UnitTests ABMTests)
# Add Multiproc tests as seperate binary
if(UNIX AND HIP_PLATFORM MATCHES "amd")
if(UNIX)
add_executable(MultiProcTests EXCLUDE_FROM_ALL main.cc hip_test_context.cc)
set_property(TARGET MultiProcTests PROPERTY CXX_STANDARD 17)
if(HIP_PLATFORM MATCHES "amd")
set_property(TARGET MultiProcTests PROPERTY CXX_STANDARD 17)
else()
target_compile_options(MultiProcTests PUBLIC -std=c++17)
endif()
target_link_libraries(MultiProcTests PRIVATE MultiProc
stdc++fs)
catch_discover_tests(MultiProcTests PROPERTIES SKIP_REGULAR_EXPRESSION "HIP_SKIP_THIS_TEST")