diff --git a/EdiabasLib/Test/Ecu/Compile.bat b/EdiabasLib/Test/Ecu/Compile.bat index d9cb4d497..efeb7b992 100644 --- a/EdiabasLib/Test/Ecu/Compile.bat +++ b/EdiabasLib/Test/Ecu/Compile.bat @@ -3,36 +3,43 @@ SETLOCAL EnableDelayedExpansion set "BATPATH=%~dp0" set "ECU_PATH=!BATPATH!" -set "BESTNET_PATH=!BATPATH!..\..\..\Tools\BestNet\artifacts\bin\BestNet\release\BestNet.exe" +set "EDIABAS_BIN_PATH=!EDIABAS_PATH!\BIN\" +set "BEST1_PATH=!EDIABAS_BIN_PATH!Best1.exe" +set "BEST2_PATH=!EDIABAS_BIN_PATH!Best2.exe" -IF NOT EXIST "!BESTNET_PATH!" ( - echo !BESTNET_PATH! not existing +IF NOT EXIST "!BEST1_PATH!" ( + echo !BEST1_PATH! not existing + EXIT /b 1 +) + +IF NOT EXIST "!BEST2_PATH!" ( + echo !BEST2_PATH! not existing EXIT /b 1 ) echo: echo compiling base1.b1v -!BESTNET_PATH! -i "!ECU_PATH!\base1.b1v" EXIT /b 1 +"!BEST1_PATH!" -Q "!ECU_PATH!\base1.b1v" || EXIT /b 1 echo done echo: echo compiling base2.b1v -!BESTNET_PATH! -i "!ECU_PATH!\base2.b1v" EXIT /b 1 +"!BEST1_PATH!" -Q "!ECU_PATH!\base2.b1v" || EXIT /b 1 echo done echo: echo compiling cmd_test1.b1v -!BESTNET_PATH! -i "!ECU_PATH!\cmd_test1.b1v" EXIT /b 1 +"!BEST1_PATH!" -Q "!ECU_PATH!\cmd_test1.b1v" || EXIT /b 1 echo done echo: echo compiling cmd_test2.b2v -!BESTNET_PATH! -i "!ECU_PATH!\cmd_test2.b2v" -l "!ECU_PATH!\test.lib" || EXIT /b 1 +"!BEST2_PATH!" -Q -L "!ECU_PATH!\test.lib" "!ECU_PATH!\cmd_test2.b2v" || EXIT /b 1 echo done echo: echo compiling cmd_ident.b1g -!BESTNET_PATH! -i "!ECU_PATH!\cmd_ident.b1g" EXIT /b 1 +"!BEST1_PATH!" -Q "!ECU_PATH!\cmd_ident.b1g" || EXIT /b 1 echo done echo: diff --git a/EdiabasLib/Test/Ecu/CompileNet.bat b/EdiabasLib/Test/Ecu/CompileNet.bat new file mode 100644 index 000000000..8012c4070 --- /dev/null +++ b/EdiabasLib/Test/Ecu/CompileNet.bat @@ -0,0 +1,40 @@ +@echo off +SETLOCAL EnableDelayedExpansion + +set "BATPATH=%~dp0" +set "ECU_PATH=!BATPATH!" +set "BESTNET_PATH=!BATPATH!..\..\..\Tools\BestNet\artifacts\bin\BestNet\release\BestNet.exe" + +IF NOT EXIST "!BESTNET_PATH!" ( + echo !BESTNET_PATH! not existing + EXIT /b 1 +) + +echo: +echo compiling base1.b1v +!BESTNET_PATH! -i "!ECU_PATH!\base1.b1v" || EXIT /b 1 +echo done + +echo: +echo compiling base2.b1v +!BESTNET_PATH! -i "!ECU_PATH!\base2.b1v" || EXIT /b 1 +echo done + +echo: +echo compiling cmd_test1.b1v +!BESTNET_PATH! -i "!ECU_PATH!\cmd_test1.b1v" || EXIT /b 1 +echo done + +echo: +echo compiling cmd_test2.b2v +!BESTNET_PATH! -i "!ECU_PATH!\cmd_test2.b2v" -l "!ECU_PATH!\test.lib" || EXIT /b 1 +echo done + +echo: +echo compiling cmd_ident.b1g +!BESTNET_PATH! -i "!ECU_PATH!\cmd_ident.b1g" || EXIT /b 1 +echo done + +echo: +echo Files successfully compiled +exit /b 0