mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
CI: more stage2 test coverage
* Test everything on the Linux CI even if we can't run it, because it's our fastest machine. * Test stage2 using a build of stage2 (instead of using `-fno-stage1`) so that compiler-rt is also built with stage2. * Additionally test running x86_64-macos on the macOS CI, both the LLVM backend and x86_64 backend.
This commit is contained in:
parent
9ea253b9c4
commit
2f42a2617b
2 changed files with 19 additions and 9 deletions
|
|
@ -55,8 +55,11 @@ make $JOBS install
|
|||
cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
|
||||
make $JOBS install
|
||||
|
||||
# TODO figure out why this causes a segmentation fault
|
||||
# release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
|
||||
# Build stage2 standalone so that we can test stage2 against stage2 compiler-rt.
|
||||
release/bin/zig build -p stage2 -Denable-llvm
|
||||
|
||||
stage2/bin/zig test ../test/behavior.zig -I../test -fLLVM
|
||||
stage2/bin/zig test ../test/behavior.zig -I../test
|
||||
|
||||
release/bin/zig build test-toolchain -Denable-macos-sdk
|
||||
release/bin/zig build test-std
|
||||
|
|
|
|||
|
|
@ -4,13 +4,20 @@
|
|||
|
||||
ZIG=$DEBUG_STAGING/bin/zig
|
||||
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test -fLLVM
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test -fLLVM -target aarch64-linux --test-cmd qemu-aarch64 --test-cmd-bin
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test -ofmt=c
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test -target wasm32-wasi --test-cmd wasmtime --test-cmd-bin
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test -target arm-linux --test-cmd qemu-arm --test-cmd-bin
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test -target aarch64-linux --test-cmd qemu-aarch64 --test-cmd-bin
|
||||
$ZIG test test/behavior.zig -fno-stage1 -I test
|
||||
# Build stage2 standalone so that we can test stage2 against stage2 compiler-rt.
|
||||
$ZIG build -p stage2 -Denable-llvm
|
||||
|
||||
stage2/bin/zig test test/behavior.zig -I test -fLLVM
|
||||
stage2/bin/zig test test/behavior.zig -I test
|
||||
stage2/bin/zig test test/behavior.zig -I test -fLLVM -target aarch64-linux --test-cmd qemu-aarch64 --test-cmd-bin
|
||||
stage2/bin/zig test test/behavior.zig -I test -target aarch64-linux --test-cmd qemu-aarch64 --test-cmd-bin
|
||||
stage2/bin/zig test test/behavior.zig -I test -ofmt=c
|
||||
stage2/bin/zig test test/behavior.zig -I test -target wasm32-wasi --test-cmd wasmtime --test-cmd-bin
|
||||
stage2/bin/zig test test/behavior.zig -I test -target arm-linux --test-cmd qemu-arm --test-cmd-bin
|
||||
stage2/bin/zig test test/behavior.zig -I test -fLLVM -target aarch64-macos --test-no-exec
|
||||
stage2/bin/zig test test/behavior.zig -I test -target aarch64-macos --test-no-exec
|
||||
stage2/bin/zig test test/behavior.zig -I test -fLLVM -target x86_64-macos --test-no-exec
|
||||
stage2/bin/zig test test/behavior.zig -I test -target x86_64-macos --test-no-exec
|
||||
|
||||
$ZIG build test-behavior -fqemu -fwasmtime
|
||||
$ZIG build test-compiler-rt -fqemu -fwasmtime
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue