2017-03-24 14:40:38 +01:00
|
|
|
#
|
|
|
|
# This file contains helper targets used by the CI.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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) && \
|
2017-03-24 14:40:38 +01:00
|
|
|
./.murdock test_job \
|
2018-03-19 11:31:52 +01:00
|
|
|
$$(realpath --relative-to $(RIOTBASE) $(APPDIR)) \
|
2018-06-22 10:31:44 +02:00
|
|
|
"$(BOARD):$(TOOLCHAIN)" \
|
2017-03-24 14:40:38 +01:00
|
|
|
$(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
|