rusefi-1/misc/jenkins/functional_test_and_build_b.../hw_test.bat

32 lines
577 B
Batchfile
Raw Normal View History

2018-12-15 21:19:15 -08:00
echo I am hw_test.bat
pwd
cd firmware
2019-02-21 09:29:50 -08:00
call flash_erase407.bat
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
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