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 .....@@ -69,9 +69,11 @@ release/bin/zig fmt --check ..
69cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"69cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
70make $JOBS install70make $JOBS install
7171
72for step in test-toolchain test-std docs; do72release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
73 release/bin/zig build $step -Denable-qemu -Denable-wasmtime73
74done74release/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
76# Look for HTML errors.78# Look for HTML errors.
77tidy -qe ../zig-cache/langref.html79tidy -qe ../zig-cache/langref.html
ci/azure/macos_script+6-3
...@@ -54,9 +54,12 @@ make $JOBS install...@@ -54,9 +54,12 @@ make $JOBS install
54cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"54cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
55make $JOBS install55make $JOBS install
5656
57for step in test-toolchain test-std docs; do57# TODO figure out why this causes a segmentation fault
58 release/bin/zig build $step58# release/bin/zig test ../test/behavior.zig -fno-stage1 -fLLVM -I ../test
59done59
60release/bin/zig build test-toolchain
61release/bin/zig build test-std
62release/bin/zig build docs
6063
61if [ "${BUILD_REASON}" != "PullRequest" ]; then64if [ "${BUILD_REASON}" != "PullRequest" ]; then
62 mv ../LICENSE release/65 mv ../LICENSE release/
ci/azure/windows_msvc_script.bat+4
...@@ -26,6 +26,10 @@ cd %ZIGBUILDDIR%...@@ -26,6 +26,10 @@ cd %ZIGBUILDDIR%
26cmake.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 /b26cmake.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
27msbuild /maxcpucount /p:Configuration=Release INSTALL.vcxproj || exit /b27msbuild /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
29"%ZIGINSTALLDIR%\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests || exit /b33"%ZIGINSTALLDIR%\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests || exit /b
30"%ZIGINSTALLDIR%\bin\zig.exe" build test-std -Dskip-non-native || exit /b34"%ZIGINSTALLDIR%\bin\zig.exe" build test-std -Dskip-non-native || exit /b
31"%ZIGINSTALLDIR%\bin\zig.exe" build docs || exit /b35"%ZIGINSTALLDIR%\bin\zig.exe" build docs || exit /b
ci/srht/freebsd_script+5
...@@ -38,6 +38,11 @@ cmake .. \...@@ -38,6 +38,11 @@ cmake .. \
38 -GNinja38 -GNinja
39samu install39samu 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
41# Here we skip some tests to save time.46# Here we skip some tests to save time.
42release/bin/zig build test -Dskip-compile-errors -Dskip-non-native47release/bin/zig build test -Dskip-compile-errors -Dskip-non-native
4348
ci/srht/netbsd_script+5
...@@ -51,6 +51,11 @@ samu install...@@ -51,6 +51,11 @@ samu install
51unset CC51unset CC
52unset CXX52unset 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
54# Here we skip some tests to save time.59# Here we skip some tests to save time.
55release/bin/zig build test -Dskip-compile-errors -Dskip-non-native60release/bin/zig build test -Dskip-compile-errors -Dskip-non-native
5661