From 0895889c5bdca349fe32e4b459bee2b2f9f56f5b Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Mon, 19 Apr 2021 16:03:02 +0000 Subject: [PATCH] Kokoro: Validate HLSL Change-Id: Ib224f6d3fa515b5112b43e48ed3d64405e4173fe Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48220 Kokoro: Kokoro Auto-Submit: Ben Clayton Reviewed-by: Antonio Maiorano Commit-Queue: Antonio Maiorano --- kokoro/windows/build.bat | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kokoro/windows/build.bat b/kokoro/windows/build.bat index 5832050e8b..e4fe0eb47e 100644 --- a/kokoro/windows/build.bat +++ b/kokoro/windows/build.bat @@ -60,6 +60,17 @@ if exist %TEMP_DIR% ( ) 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 @@ cmake --build . --config %BUILD_TYPE% || goto :error 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