fome-fw/misc/unit_tests.bat

34 lines
722 B
Batchfile

echo I am unit_tests.bat
cd firmware
echo "CD to ${PWD}"
rm -fR .dep
rm -fR build
java -jar ../java_tools/version2header.jar
make
if not exist build/rusefi.hex echo FAILED TO COMPILE FIRMWARE
if not exist build/rusefi.hex exit -1
cd ..
echo Preparing firmware-only fast upload
zip -j firmware/build/rusefi_firmware.zip firmware/svnversion.h firmware/build/rusefi.hex firmware/build/rusefi.bin firmware/build/rusefi.elf firmware/tunerstudio/rusefi.ini
cd unit_tests
call compile.bat
pwd
ls -l build
if not exist build/rusefi_test.exe echo FAILED TO COMPILE UNIT TESTS
if not exist build/rusefi_test.exe exit -1
echo Looks good, now executing
cd build
call rusefi_test.exe
cd ..