Improving reg testing helper scripts
This commit is contained in:
@@ -1,29 +1,41 @@
|
||||
::
|
||||
:: gen-config.cmd - Generated nrtest app configuration file for test executable
|
||||
::
|
||||
::
|
||||
:: Date Created: 1/8/2018
|
||||
::
|
||||
:: Author: Michael E. Tryby
|
||||
:: US EPA - ORD/NRMRL
|
||||
::
|
||||
:: Arguments:
|
||||
:: Arguments:
|
||||
:: 1 - absolute path to test executable (valid path seperator for nrtest is "/")
|
||||
::
|
||||
:: 2 - (platform)
|
||||
:: 3 - (build identifier for SUT)
|
||||
:: 4 - (commit hash string)
|
||||
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: process path to remove quotes and convert backward to forward slash
|
||||
:: swmm target created by the cmake build script
|
||||
set TEST_CMD=runepanet.exe
|
||||
|
||||
:: remove quotes from path and convert backward to forward slash
|
||||
set ABS_BUILD_PATH=%~1
|
||||
set ABS_BUILD_PATH=%ABS_BUILD_PATH:\=/%
|
||||
|
||||
:: this is the target created by the cmake build script
|
||||
set TEST_CMD=runepanet.exe
|
||||
IF [%2]==[] ( set "PLATFORM=unknown"
|
||||
) ELSE ( set "PLATFORM=%~2" )
|
||||
|
||||
IF [%3]==[] ( set "BUILD_ID=unknown"
|
||||
) ELSE ( set "BUILD_ID=%~3" )
|
||||
|
||||
IF [%4]==[] ( set "VERSION=unknown"
|
||||
) ELSE ( set "VERSION=%~4" )
|
||||
|
||||
|
||||
echo {
|
||||
echo "name" : "epanet",
|
||||
echo "version" : "",
|
||||
echo "description" : "",
|
||||
echo "version" : "%VERSION%",
|
||||
echo "description" : "%PLATFORM% %BUILD_ID%",
|
||||
echo "setup_script" : "",
|
||||
echo "exe" : "%ABS_BUILD_PATH%/%TEST_CMD%"
|
||||
echo }
|
||||
|
||||
Reference in New Issue
Block a user