Add search for SUT exe location

This commit is contained in:
Michael Tryby
2019-02-12 15:16:54 -05:00
parent 77f96a228d
commit 874dfa9847

View File

@@ -29,9 +29,10 @@ set BENCHMARK_VER=220dev5
set "SCRIPT_HOME=%~dp0" set "SCRIPT_HOME=%~dp0"
set "EXE_HOME=buildprod\bin\Release" set "EXE_HOME=buildprod\bin\Release"
:: Determine SUT executable path ::: Determine SUT executable path
for %%a in ("%SCRIPT_HOME:~0,-1%") do set "SUT_PATH=%%~dpa" :: TODO: This may fail when there is more than one cmake buildprod folder
set SUT_PATH=%SUT_PATH%%EXE_HOME% 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 :: Check existence and apply default arguments
IF NOT [%1]==[] ( set "SUT_VER=%~1" IF NOT [%1]==[] ( set "SUT_VER=%~1"