diff --git a/scripts/build.sh b/scripts/build.sh index d6f345d..ba564ab 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -47,4 +47,6 @@ cmake \ cmake --build . -j $(nproc) -ctest --output-on-failure . -j $(nproc) +TEST_TIMEOUT=600 # seconds +export QTEST_FUNCTION_TIMEOUT="$(( $TEST_TIMEOUT * 1000 ))" # milliseconds +ctest --timeout $TIMEOUT --output-on-failure . -j $(nproc)