Skip to content

Commit

Permalink
Make test timeout 1h.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 6, 2024
1 parent 1952b89 commit f37de1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if(OPTION_TEST_MEMORYCHECK AND NOT (OPTION_BUILD_ADDRESS_SANITIZER OR OPTION_BUI
--label-exclude MEMCHECK_IGNORE
--force-new-ctest-process
--test-action memcheck
--timeout 7200
--timeout 3600
COMMAND ${CMAKE_COMMAND} -E cat "${CMAKE_BINARY_DIR}/Testing/Temporary/MemoryChecker.*.log"
)

Expand Down
2 changes: 1 addition & 1 deletion tools/metacall-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function Sub-Build {
# Tests
if (($BUILD_TESTS -eq 1) -or ($BUILD_BENCHMARKS -eq 1) -or ($BUILD_COVERAGE -eq 1)) {
echo "Running the tests..."
ctest "-j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)" --timeout 7200 --output-on-failure -C $BUILD_TYPE
ctest "-j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)" --timeout 3600 --output-on-failure -C $BUILD_TYPE

if (-not $?) {
$RecentExitCode = $LASTEXITCODE
Expand Down
4 changes: 2 additions & 2 deletions tools/metacall-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ sub_build() {

# Tests (coverage needs to run the tests)
if [ $BUILD_TESTS = 1 ] || [ $BUILD_BENCHMARKS=1 ] || [ $BUILD_COVERAGE = 1 ]; then
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 7200 --output-on-failure --test-output-size-failed 3221000000 -C $BUILD_TYPE
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 3600 --output-on-failure --test-output-size-failed 3221000000 -C $BUILD_TYPE
fi

# Coverage
if [ $BUILD_COVERAGE = 1 ]; then
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 7200 -T Coverage
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 3600 -T Coverage
gcovr -r ../source/ . --html-details coverage.html
fi

Expand Down

0 comments on commit f37de1d

Please sign in to comment.