Kokoro: Validate HLSL Change-Id: Ib224f6d3fa515b5112b43e48ed3d64405e4173fe Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48220 Kokoro: Kokoro <noreply+kokoro@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
diff --git a/kokoro/windows/build.bat b/kokoro/windows/build.bat index 5832050..e4fe0eb 100644 --- a/kokoro/windows/build.bat +++ b/kokoro/windows/build.bat
@@ -60,6 +60,17 @@ ) mkdir %TEMP_DIR% || goto :error +call :status "Fetching DXC" +@echo on +curl -L https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.5.2010/dxc_2020_10-22.zip --output %TEMP_DIR%\dxc.zip || goto :error +@echo off + +call :status "Unpacking DXC" +@echo on +powershell.exe -Command "Expand-Archive -LiteralPath '%TEMP_DIR%\dxc.zip' -DestinationPath '%TEMP_DIR%\dxc'" || goto :error +set PATH=%TEMP_DIR%\dxc\bin\x64;%PATH% +@echo off + call :status "Installing depot_tools" @echo on pushd %TEMP_DIR% @@ -107,7 +118,7 @@ call :status "Running tint_unittests" @echo on -%BUILD_TYPE%\tint_unittests.exe || goto :error +%BUILD_TYPE%\tint_unittests.exe --validate-hlsl || goto :error @echo off @rem TODO(amaiorano): test-all.sh for Windows