authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-27 17:16:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-28 16:00:49-04:00
logc47b46fc8dcb24a9af8e28d169d93170fce0e061
tree198688904d8c224e9f17f194dc6b5d147f033f55
parentc1285a1bbe04ab9960768ed8eb583ba8eb32cbe1

CI: enable stage2 behavior test coverage


5 files changed, 25 insertions(+), 6 deletions(-)

ci/azure/linux_script+5-3
......@@ -69,9 +69,11 @@ release/bin/zig fmt --check ..
6969cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
7070make $JOBS install
7171
72for step in test-toolchain test-std docs; do
73 release/bin/zig build $step -Denable-qemu -Denable-wasmtime
74done
72release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
73
74release/bin/zig build test-toolchain -Denable-qemu -Denable-wasmtime
75release/bin/zig build test-std -Denable-qemu -Denable-wasmtime
76release/bin/zig build docs -Denable-qemu -Denable-wasmtime
7577
7678# Look for HTML errors.
7779tidy -qe ../zig-cache/langref.html
ci/azure/macos_script+6-3
......@@ -54,9 +54,12 @@ make $JOBS install
5454cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
5555make $JOBS install
5656
57for step in test-toolchain test-std docs; do
58 release/bin/zig build $step
59done
57# TODO figure out why this causes a segmentation fault
58# release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
59
60release/bin/zig build test-toolchain
61release/bin/zig build test-std
62release/bin/zig build docs
6063
6164if [ "${BUILD_REASON}" != "PullRequest" ]; then
6265 mv ../LICENSE release/
ci/azure/windows_msvc_script.bat+4
......@@ -26,6 +26,10 @@ cd %ZIGBUILDDIR%
2626cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=Release -DZIG_OMIT_STAGE2=ON || exit /b
2727msbuild /maxcpucount /p:Configuration=Release INSTALL.vcxproj || exit /b
2828
29REM Sadly, stage2 is omitted from this build to save memory on the CI server. Once self-hosted is
30REM built with itself and does not gobble as much memory, we can enable these tests.
31REM "%ZIGINSTALLDIR%\bin\zig.exe" test "..\test\behavior.zig" -fno-stage1 -fLLVM -I "..\test" || exit /b
32
2933"%ZIGINSTALLDIR%\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests || exit /b
3034"%ZIGINSTALLDIR%\bin\zig.exe" build test-std -Dskip-non-native || exit /b
3135"%ZIGINSTALLDIR%\bin\zig.exe" build docs || exit /b
ci/srht/freebsd_script+5
......@@ -38,6 +38,11 @@ cmake .. \
3838 -GNinja
3939samu install
4040
41# TODO ld.lld: error: undefined symbol: main
42# >>> referenced by crt1_c.c:75 (/usr/src/lib/csu/amd64/crt1_c.c:75)
43# >>> /usr/lib/crt1.o:(_start)
44#release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
45
4146# Here we skip some tests to save time.
4247release/bin/zig build test -Dskip-compile-errors -Dskip-non-native
4348
ci/srht/netbsd_script+5
......@@ -51,6 +51,11 @@ samu install
5151unset CC
5252unset CXX
5353
54# TODO ld.lld: error: undefined symbol: main
55#>>> referenced by crt0-common.c
56#>>> /usr/lib/crt0.o:(___start)
57#release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
58
5459# Here we skip some tests to save time.
5560release/bin/zig build test -Dskip-compile-errors -Dskip-non-native
5661