zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b43bb3a32a3b447e9b320f34e046946bcca0037f (tree)
parent 263e7fe87ade0f57f8d7a9eba82734ec99630696
Author: mlugg <mlugg@mlugg.co.uk>
Date:   Tue, 26 Aug 2025 22:40:26 +0100

ci: set unit test timeouts

Diffstat:
Mci/aarch64-linux-debug.sh | 3++-
Mci/aarch64-linux-release.sh | 3++-
Mci/aarch64-macos-debug.sh | 3++-
Mci/aarch64-macos-release.sh | 3++-
Mci/aarch64-windows.ps1 | 3++-
Mci/riscv64-linux-debug.sh | 3++-
Mci/riscv64-linux-release.sh | 3++-
Mci/x86_64-linux-debug-llvm.sh | 3++-
Mci/x86_64-linux-debug.sh | 3++-
Mci/x86_64-linux-release.sh | 3++-
Mci/x86_64-windows-debug.ps1 | 3++-
Mci/x86_64-windows-release.ps1 | 3++-
12 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/ci/aarch64-linux-debug.sh b/ci/aarch64-linux-debug.sh @@ -50,7 +50,8 @@ stage3-debug/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 stage3-debug/bin/zig build \ --prefix stage4-debug \ diff --git a/ci/aarch64-linux-release.sh b/ci/aarch64-linux-release.sh @@ -50,7 +50,8 @@ stage3-release/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 # Ensure that stage3 and stage4 are byte-for-byte identical. stage3-release/bin/zig build \ diff --git a/ci/aarch64-macos-debug.sh b/ci/aarch64-macos-debug.sh @@ -46,4 +46,5 @@ stage3-debug/bin/zig build test docs \ -Denable-macos-sdk \ -Dstatic-llvm \ -Dskip-non-native \ - --search-prefix "$PREFIX" + --search-prefix "$PREFIX" \ + --test-timeout-ms 60_000 diff --git a/ci/aarch64-macos-release.sh b/ci/aarch64-macos-release.sh @@ -46,7 +46,8 @@ stage3-release/bin/zig build test docs \ -Denable-macos-sdk \ -Dstatic-llvm \ -Dskip-non-native \ - --search-prefix "$PREFIX" + --search-prefix "$PREFIX" \ + --test-timeout-ms 60_000 # Ensure that stage3 and stage4 are byte-for-byte identical. stage3-release/bin/zig build \ diff --git a/ci/aarch64-windows.ps1 b/ci/aarch64-windows.ps1 @@ -58,7 +58,8 @@ Write-Output "Main test suite..." --search-prefix "$PREFIX_PATH" ` -Dstatic-llvm ` -Dskip-non-native ` - -Denable-symlinks-windows + -Denable-symlinks-windows ` + --test-timeout-ms 60_000 CheckLastExitCode # Ensure that stage3 and stage4 are byte-for-byte identical. diff --git a/ci/riscv64-linux-debug.sh b/ci/riscv64-linux-debug.sh @@ -51,4 +51,5 @@ stage3-debug/bin/zig build test-cases test-modules test-unit test-c-abi test-sta -Dskip-compile-errors \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ - --zig-lib-dir "$PWD/../lib" + --zig-lib-dir "$PWD/../lib" \ + --test-timeout-ms 60_000 diff --git a/ci/riscv64-linux-release.sh b/ci/riscv64-linux-release.sh @@ -51,4 +51,5 @@ stage3-release/bin/zig build test-cases test-modules test-unit test-c-abi test-s -Dskip-compile-errors \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ - --zig-lib-dir "$PWD/../lib" + --zig-lib-dir "$PWD/../lib" \ + --test-timeout-ms 60_000 diff --git a/ci/x86_64-linux-debug-llvm.sh b/ci/x86_64-linux-debug-llvm.sh @@ -61,4 +61,5 @@ stage3-debug/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 diff --git a/ci/x86_64-linux-debug.sh b/ci/x86_64-linux-debug.sh @@ -61,4 +61,5 @@ stage3-debug/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh @@ -63,7 +63,8 @@ stage3-release/bin/zig build test docs \ -Dtarget=native-native-musl \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ - -Denable-superhtml + -Denable-superhtml \ + --test-timeout-ms 60_000 # Ensure that stage3 and stage4 are byte-for-byte identical. stage3-release/bin/zig build \ diff --git a/ci/x86_64-windows-debug.ps1 b/ci/x86_64-windows-debug.ps1 @@ -59,7 +59,8 @@ Write-Output "Main test suite..." -Dstatic-llvm ` -Dskip-non-native ` -Dskip-release ` - -Denable-symlinks-windows + -Denable-symlinks-windows ` + --test-timeout-ms 60_000 CheckLastExitCode Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..." diff --git a/ci/x86_64-windows-release.ps1 b/ci/x86_64-windows-release.ps1 @@ -58,7 +58,8 @@ Write-Output "Main test suite..." --search-prefix "$PREFIX_PATH" ` -Dstatic-llvm ` -Dskip-non-native ` - -Denable-symlinks-windows + -Denable-symlinks-windows ` + --test-timeout-ms 60_000 CheckLastExitCode # Ensure that stage3 and stage4 are byte-for-byte identical.