mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 01:53:16 +00:00
* migrate runtime safety tests to the new test harness
- this required adding compare output / execution support for stage1
to the test harness.
* rename `zig build test-stage2` to `zig build test-cases` since it now
does quite a bit of stage1 testing actually. I named it this way
since the main directory in the source tree associated with these
tests is "test/cases/".
* add some documentation for the test manifest format.
52 lines
1.4 KiB
Bash
Executable File
52 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./ci/drone/linux_script_base
|
|
|
|
BUILD_FLAGS="-Dskip-non-native"
|
|
|
|
case "$1" in
|
|
1)
|
|
./build/zig build $BUILD_FLAGS test-behavior
|
|
./build/zig build $BUILD_FLAGS test-compiler-rt
|
|
./build/zig build $BUILD_FLAGS test-fmt
|
|
./build/zig build $BUILD_FLAGS docs
|
|
;;
|
|
2)
|
|
# Debug
|
|
./build/zig build $BUILD_FLAGS test-std -Dskip-release-safe -Dskip-release-fast -Dskip-release-small
|
|
;;
|
|
3)
|
|
# ReleaseSafe
|
|
./build/zig build $BUILD_FLAGS test-std -Dskip-debug -Dskip-release-fast -Dskip-release-small
|
|
;;
|
|
4)
|
|
# Releasefast
|
|
./build/zig build $BUILD_FLAGS test-std -Dskip-debug -Dskip-release-safe -Dskip-release-small
|
|
;;
|
|
5)
|
|
# ReleaseSmall
|
|
./build/zig build $BUILD_FLAGS test-std -Dskip-debug -Dskip-release-safe -Dskip-release-fast
|
|
;;
|
|
6)
|
|
./build/zig build $BUILD_FLAGS test-universal-libc
|
|
./build/zig build $BUILD_FLAGS test-compare-output
|
|
./build/zig build $BUILD_FLAGS test-standalone -Dskip-release-safe
|
|
./build/zig build $BUILD_FLAGS test-stack-traces
|
|
./build/zig build $BUILD_FLAGS test-cli
|
|
./build/zig build $BUILD_FLAGS test-asm-link
|
|
./build/zig build $BUILD_FLAGS test-translate-c
|
|
;;
|
|
7)
|
|
./build/zig build $BUILD_FLAGS # test building self-hosted without LLVM
|
|
./build/zig build $BUILD_FLAGS test-cases
|
|
;;
|
|
'')
|
|
echo "error: expecting test group argument"
|
|
exit 1
|
|
;;
|
|
*)
|
|
echo "error: unknown test group: $1"
|
|
exit 1
|
|
;;
|
|
esac
|