Add search for SUT exe location
This commit is contained in:
@@ -29,9 +29,10 @@ set BENCHMARK_VER=220dev5
|
||||
set "SCRIPT_HOME=%~dp0"
|
||||
set "EXE_HOME=buildprod\bin\Release"
|
||||
|
||||
:: Determine SUT executable path
|
||||
for %%a in ("%SCRIPT_HOME:~0,-1%") do set "SUT_PATH=%%~dpa"
|
||||
set SUT_PATH=%SUT_PATH%%EXE_HOME%
|
||||
::: Determine SUT executable path
|
||||
:: TODO: This may fail when there is more than one cmake buildprod folder
|
||||
for /d /r "%SCRIPT_HOME%..\" %%a in (*) do if /i "%%~nxa"=="bin" set "BUILD_HOME=%%a"
|
||||
set SUT_PATH=%BUILD_HOME%\%EXE_HOME%
|
||||
|
||||
:: Check existence and apply default arguments
|
||||
IF NOT [%1]==[] ( set "SUT_VER=%~1"
|
||||
|
||||
Reference in New Issue
Block a user