More elaborate adjustments for test timeouts
Summary
Currently, we build gromacs on all archs but x86(_64) without SIMD. This apparently causes some test to exceed its timeout.
We see errors like:
[ 1978s] 64 - MdrunTestsTwoRanks (Timeout)
or near misses like:
[ 790s] 5/5 Test #64: MdrunTestsTwoRanks ............................. Passed 78.30 sec
Exact steps to reproduce
Build gromacs without SIMD/GPU support, run on a fairly slow host.
Possible fixes
Timeouts are defined in https://gitlab.com/gromacs/gromacs/-/blob/main/src/testutils/TestMacros.cmake
- Allow to set a different timeout baseline, instead of 30 seconds:
https://gitlab.com/gromacs/gromacs/-/blob/main/src/testutils/TestMacros.cmake#L265 - Set other timeouts as a multiple of the base value, e.g.
math(EXPR _timeout "4 * ${_timeout}")
https://cmake.org/cmake/help/latest/command/math.html - Add an additional timeout for non-SIMD cases (e.g. multiply by 2).