1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tools/iotlab-testbed: check iotlab cli tools are installed

This commit is contained in:
Alexandre Abadie 2021-05-26 21:13:16 +02:00
parent a9fceb1592
commit a7f00548a2
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -57,6 +57,24 @@ endif
IOTLAB_AUTH ?= $(HOME)/.iotlabrc
IOTLAB_USER ?= $(shell cut -f1 -d: $(IOTLAB_AUTH))
ifneq (0,$(shell command -v iotlab-experiment -h 2>&1 > /dev/null ; echo $$?))
$(info $(COLOR_RED)'iotlab-experiment' command is not available \
please consider installing it from \
https://pypi.python.org/pypi/iotlabcli$(COLOR_RESET))
$(error )
endif
ifeq (iotlab-a8-m3,$(BOARD))
ifneq (,$(filter flash% reset,$(MAKECMDGOALS)))
ifneq (0,$(shell command -v iotlab-ssh -h 2>&1 > /dev/null ; echo $$?))
$(info $(COLOR_RED)'iotlab-ssh' command is not available \
please consider installing it from \
https://pypi.python.org/pypi/iotlabsshcli$(COLOR_RESET))
$(error )
endif
endif
endif
# Optional Experiment id. Required when having multiple experiments
IOTLAB_EXP_ID ?=