From 838a2236a1808898a1545f39c170bf550178bbd0 Mon Sep 17 00:00:00 2001 From: scaprile Date: Tue, 11 Apr 2023 17:47:38 -0300 Subject: [PATCH] Add preliminary test --- test/keil/Makefile | 10 ++++++++++ test/keil/unitest.bat | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/keil/Makefile create mode 100644 test/keil/unitest.bat diff --git a/test/keil/Makefile b/test/keil/Makefile new file mode 100644 index 00000000..ea9e4972 --- /dev/null +++ b/test/keil/Makefile @@ -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: diff --git a/test/keil/unitest.bat b/test/keil/unitest.bat new file mode 100644 index 00000000..03bdc303 --- /dev/null +++ b/test/keil/unitest.bat @@ -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