2019-04-20 14:27:04 -07:00
|
|
|
echo "TIMESTAMP %date% %time%"
|
2019-06-01 17:25:51 -07:00
|
|
|
set script_name=hw_test.bat
|
|
|
|
echo Entering %script_name%
|
2018-12-15 21:19:15 -08:00
|
|
|
pwd
|
|
|
|
|
|
|
|
cd firmware
|
2019-02-21 10:30:27 -08:00
|
|
|
rem Using magic 'cd' system variable here
|
|
|
|
set "cur_folder=%cd%"
|
2019-06-01 17:25:51 -07:00
|
|
|
echo "%script_name%: erasing first"
|
2019-02-21 09:29:50 -08:00
|
|
|
call flash_erase407.bat
|
2019-02-21 17:51:30 -08:00
|
|
|
cd %cur_folder%
|
|
|
|
pwd
|
2019-06-01 17:25:51 -07:00
|
|
|
echo "%script_name%: trying to flash"
|
2018-12-15 21:19:15 -08:00
|
|
|
rem This script depends on someone else building firmware
|
2019-02-21 09:29:50 -08:00
|
|
|
call flash_openocd407.bat
|
2019-06-01 17:25:51 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo ERROR invoking flash_openocd407.bat
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
2018-12-15 21:19:15 -08:00
|
|
|
|
2019-02-21 10:30:27 -08:00
|
|
|
cd %cur_folder%
|
|
|
|
|
2018-12-15 21:19:15 -08:00
|
|
|
if not exist build/rusefi.bin echo FIRMWARE NOT FOUND
|
|
|
|
if not exist build/rusefi.bin exit -1
|
|
|
|
|
|
|
|
pwd
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rem echo Running some commands
|
|
|
|
rem pwd
|
|
|
|
rem java -cp java_console_binary\rusefi_console.jar com.rusefi.CmdLine "set_led_blinking_period 10"
|
|
|
|
|
|
|
|
cd java_console
|
|
|
|
|
|
|
|
echo Running tests
|
|
|
|
which java
|
|
|
|
which javac
|
|
|
|
ant realtest
|
|
|
|
|
2019-06-01 10:01:43 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo ERROR DETECTED
|
2018-12-15 21:19:15 -08:00
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
2019-04-20 14:27:04 -07:00
|
|
|
echo "TIMESTAMP %date% %time%"
|
2019-06-01 17:25:51 -07:00
|
|
|
pwd
|
|
|
|
echo "exiting %script_name%"
|