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

45 lines
932 B
Batchfile
Raw Normal View History

echo "TIMESTAMP %date% %time%"
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%"
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
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
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
echo "TIMESTAMP %date% %time%"
pwd
echo "exiting %script_name%"