Skip to content

Commit 40757e0

Browse files
committed
WIP 2024-04-24 śro 13:37
1 parent 6f09ef1 commit 40757e0

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ jobs:
101101
build/CMakeCache.txt
102102
build/envdump.txt
103103
build/Testing
104-
build/test/gtest/mhp/*.log
105-
build/benchmarks/gbench/mhp/*.log
106-
build/examples/mhp/*.log
104+
build/test/gtest/{m,s}hp/*.log
105+
build/benchmarks/gbench/{m,s}hp/*.log
106+
build/examples/{m,s}hp/*.log
107107
108108
ishmem_unit_tests:
109109
runs-on: pvc

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ add_custom_target(all-tests DEPENDS mhp-all-tests shp-all-tests)
147147

148148
function(add_mhp_ctest_impl)
149149
set(options OFFLOAD GDB SYCL DRLOGS TESTLABEL)
150-
set(oneValueArgs NAME TEST_NAME NPROC)
150+
set(oneValueArgs NAME TEST_NAME NPROC TIMEOUT)
151151
set(multiValueArgs TARGS) # Test ARGumentS
152152

153153
cmake_parse_arguments(AMC "${options}" "${oneValueArgs}" "${multiValueArgs}"
@@ -220,7 +220,12 @@ function(add_mhp_ctest_impl)
220220
${MPIEXEC_PREFLAGS} ${extra_mpiflags} ${wrapper_script} ./${AMC_NAME}
221221
${drlogs_param} ${sycl_param} ${AMC_TARGS} COMMAND_EXPAND_LISTS)
222222

223-
set_tests_properties(${AMC_TEST_NAME} PROPERTIES TIMEOUT 60)
223+
if(DEFINED AMC_TIMEOUT)
224+
set_tests_properties(${AMC_TEST_NAME} PROPERTIES TIMEOUT ${AMC_TIMEOUT})
225+
else()
226+
set_tests_properties(${AMC_TEST_NAME} PROPERTIES TIMEOUT 60)
227+
endif()
228+
224229
if(AMC_TESTLABEL)
225230
set_property(TEST ${AMC_TEST_NAME} PROPERTY LABELS TESTLABEL MHP)
226231
endif()

test/gtest/mhp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if(ENABLE_SYCL)
118118

119119
foreach(nproc RANGE 2 4)
120120
add_mhp_ctest(
121-
NAME mhp-tests NPROC ${nproc} SYCL TARGS
121+
NAME mhp-tests NPROC ${nproc} TIMEOUT 150 SYCL TARGS
122122
--gtest_filter=-${sycl-exclusions})
123123
endforeach()
124124
add_mhp_ctest(

0 commit comments

Comments
 (0)