Add preliminary test

This commit is contained in:
scaprile 2023-04-11 17:47:38 -03:00
parent d03941b792
commit 838a2236a1
2 changed files with 18 additions and 0 deletions

10
test/keil/Makefile Normal file
View File

@ -0,0 +1,10 @@
# Do NOT use parenthesis on Windows project dir names
PROJECTS = $(wildcard ../../examples/stm32/nucleo-*-keil-*)
all: $(PROJECTS)
# Need to test inside .bat to check and transfer errors
$(PROJECTS): FORCE
unitest.bat $(subst /,\,$@)
FORCE:

8
test/keil/unitest.bat Normal file
View File

@ -0,0 +1,8 @@
cd %*
start /WAIT /B C:\Keil_v5\UV4\UV4.exe -cr device-dashboard.uvprojx -j0 -o output.txt
if %ERRORLEVEL% NEQ 0 (
type output.txt
exit /B %ERRORLEVEL%
)
del output.txt
C:\Keil_v5\UV4\UV4.exe -c device-dashboard.uvprojx -j0