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

37 lines
995 B
Makefile
Raw Normal View History

#
# This file contains helper targets used by the CI.
#
# (HACK) get actual flash binary from FFLAGS.
FLASHFILE:=$(filter $(HEXFILE) $(ELFFILE:.elf=.bin) $(ELFFILE),$(FFLAGS))
#
# This target will run "make test" on the CI cluster.
#
# In order to work, these requirements must be fulfilled:
# - DWQ_REPO and DWQ_COMMIT are set correctly
# - the user has set up autossh & proper authentication for connecting to the CI
# (intended to be used by CI only for now)
test-murdock:
2018-03-19 11:31:52 +01:00
cd $(RIOTBASE) && \
./.murdock test_job \
2018-03-19 11:31:52 +01:00
$$(realpath --relative-to $(RIOTBASE) $(APPDIR)) \
$(BOARD) \
$(FLASHFILE)
# don't whitelist tests if there's no binary
ifeq (1,$(RIOTNOLINK))
TEST_ON_CI_WHITELIST:=
endif
# create $(BINDIR)/.test file only if BOARD is in $(TEST_ON_CI_WHITELIST)
.PHONY: $(BINDIR)/.test
link: $(BINDIR)/.test
$(BINDIR)/.test: $(filter clean, $(MAKECMDGOALS))
ifneq (,$(filter $(BOARD) all, $(TEST_ON_CI_WHITELIST)))
$(Q)mkdir -p $(BINDIR)
$(Q)touch $@
else
$(Q)rm -f $@
endif