2018-12-15 21:19:15 -08:00
|
|
|
echo I am hw_test.bat
|
|
|
|
pwd
|
|
|
|
|
|
|
|
cd firmware
|
2019-02-21 10:30:27 -08:00
|
|
|
rem Using magic 'cd' system variable here
|
|
|
|
set "cur_folder=%cd%"
|
2019-02-21 09:29:50 -08:00
|
|
|
call flash_erase407.bat
|
2019-02-21 17:51:30 -08:00
|
|
|
cd %cur_folder%
|
|
|
|
pwd
|
|
|
|
echo "hw_test.bat: 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
|
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
|
|
|
|
|
|
|
|
IF NOT ERRORLEVEL echo ERROR DETECTED
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
|
|
|
echo %date% %time%
|
|
|
|
echo hw_test.bat: done
|