Skip to content

Commit ff8b52d

Browse files
committed
Makefile: Add test checking.
Signed-off-by: zhanglinjing <Linjing.Zhang@infineon.com>
1 parent 15af74f commit ff8b52d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ test_onewire_DS18x20: TESTS=-DTEST_ONEWIRE_DS18x20
120120
compile:
121121
ifeq ($(FQBN),)
122122
$(error "Must set variable FQBN in order to be able to compile Arduino sketches !")
123+
endif
124+
ifeq ($(TESTS),)
125+
$(error "Must set variable TESTS in order to be able to flash a specific arduino core test !")
123126
else
124127
arduino-cli compile --clean --log --warnings all --fqbn $(FQBN) \
125128
--build-property compiler.c.extra_flags="\"-DUNITY_INCLUDE_CONFIG_H=1\"" \

0 commit comments

Comments
 (0)