32 lines
563 B
Batchfile
32 lines
563 B
Batchfile
echo I am hw_test.bat
|
|
pwd
|
|
|
|
cd firmware
|
|
call flash_erase
|
|
rem This script depends on someone else building firmware
|
|
call flash_openocd
|
|
|
|
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
|