authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-08 02:35:38-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-13 04:05:49-05:00
log0e659042ac1ec092aad84da9400d5c18979257d9
treea4ef2dcb1da74106ec6ae4787dc4eff95d7cbd70
parent7cb2f9222da38d687e8708dd5d94d3175cc77995

ci: run the behaviour tests using the cbe and msvc


1 files changed, 34 insertions(+), 0 deletions(-)

ci/x86_64-windows.ps1+34
......@@ -67,3 +67,37 @@ Write-Output "Testing Autodocs..."
6767 -fno-emit-bin
6868CheckLastExitCode
6969
70Write-Output "Build behaviour tests using the C backend..."
71& "stage3-release\bin\zig.exe" test `
72 ..\test\behavior.zig `
73 --zig-lib-dir "$ZIG_LIB_DIR" `
74 -I..\test `
75 -I..\lib `
76 -ofmt=c `
77 -femit-bin="test_behaviour.c"
78CheckLastExitCode
79
80& "stage3-release\bin\zig.exe" build-obj `
81 ..\lib\compiler_rt.zig `
82 --zig-lib-dir "$ZIG_LIB_DIR" `
83 -ofmt=c `
84 -OReleaseSmall `
85 --name compiler_rt `
86 -femit-bin="compiler_rt.c" `
87 --pkg-begin build_options config.zig --pkg-end
88CheckLastExitCode
89
90Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
91CheckLastExitCode
92
93Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" `
94 -DevCmdArguments '-arch=x64 -no_logo' `
95 -StartInPath $(Get-Location)
96CheckLastExitCode
97
98Write-Output "Build and run behaviour tests with msvc..."
99& cl.exe -I..\lib test_behaviour.c compiler_rt.c /W3 /Z7 -link -nologo -debug -subsystem:console -entry:wWinMainCRTStartup kernel32.lib ntdll.lib vcruntime.lib libucrt.lib
100CheckLastExitCode
101
102& .\test_behaviour.exe
103CheckLastExitCode