|
@@ -1,10 +1,9 @@
|
|
@echo off
|
|
@echo off
|
|
setlocal ENABLEDELAYEDEXPANSION
|
|
setlocal ENABLEDELAYEDEXPANSION
|
|
|
|
|
|
-if "%1"=="/?" goto :showhelp
|
|
|
|
-if "%1"=="-?" goto :showhelp
|
|
|
|
-if "%1"=="-help" goto :showhelp
|
|
|
|
-if "%1"=="--help" goto :showhelp
|
|
|
|
|
|
+if "%BUILD_CONFIG%"=="" (
|
|
|
|
+ set BUILD_CONFIG=Debug
|
|
|
|
+)
|
|
|
|
|
|
rem Whether we built the project using ninja as the generator.
|
|
rem Whether we built the project using ninja as the generator.
|
|
set GENERATOR_NINJA=0
|
|
set GENERATOR_NINJA=0
|
|
@@ -24,9 +23,6 @@ set TEST_SPIRV=0
|
|
set TEST_SPIRV_ONLY=0
|
|
set TEST_SPIRV_ONLY=0
|
|
rem End SPIRV change
|
|
rem End SPIRV change
|
|
|
|
|
|
-if "%BUILD_CONFIG%"=="" (
|
|
|
|
- set BUILD_CONFIG=Debug
|
|
|
|
-)
|
|
|
|
set HCT_DIR=%~dp0
|
|
set HCT_DIR=%~dp0
|
|
|
|
|
|
if "%NUMBER_OF_PROCESSORS%"=="" (
|
|
if "%NUMBER_OF_PROCESSORS%"=="" (
|
|
@@ -44,6 +40,11 @@ if "%NUMBER_OF_PROCESSORS%"=="" (
|
|
:opt_loop
|
|
:opt_loop
|
|
if "%1"=="" (goto :done_opt)
|
|
if "%1"=="" (goto :done_opt)
|
|
|
|
|
|
|
|
+if "%1"=="/?" goto :showhelp
|
|
|
|
+if "%1"=="-?" goto :showhelp
|
|
|
|
+if "%1"=="-help" goto :showhelp
|
|
|
|
+if "%1"=="--help" goto :showhelp
|
|
|
|
+
|
|
rem Begin SPIRV change
|
|
rem Begin SPIRV change
|
|
if "%1"=="spirv" (
|
|
if "%1"=="spirv" (
|
|
set TEST_SPIRV=1
|
|
set TEST_SPIRV=1
|
|
@@ -337,13 +338,17 @@ goto :eof
|
|
rem %1 - name of binary to demo
|
|
rem %1 - name of binary to demo
|
|
rem %2 - first argument to te
|
|
rem %2 - first argument to te
|
|
|
|
|
|
|
|
+if "%TEST_DIR%"=="" (
|
|
|
|
+ set TEST_DIR=%HLSL_BLD_DIR%\%BUILD_CONFIG%\test
|
|
|
|
+)
|
|
|
|
+
|
|
echo You can debug the test with the following command line.
|
|
echo You can debug the test with the following command line.
|
|
echo start devenv /debugexe TE.exe /inproc %TEST_DIR%\%*
|
|
echo start devenv /debugexe TE.exe /inproc %TEST_DIR%\%*
|
|
echo.
|
|
echo.
|
|
-echo Use this te.exe for out-of-proc, or pick the correct one for the target arch, currently x86.
|
|
|
|
|
|
+echo Use this te.exe for out-of-proc, or pick the correct one for the target arch, currently %BUILD_ARCH%.
|
|
where te.exe
|
|
where te.exe
|
|
echo.
|
|
echo.
|
|
-echo Use /name:TestClass* or /name:TestClass::MethodName to filter.
|
|
|
|
|
|
+echo Use /name:TestClass* or /name:TestClass::MethodName to filter and /breakOnError to catch the failure.
|
|
goto :eof
|
|
goto :eof
|
|
|
|
|
|
:check_result
|
|
:check_result
|