From 35c73c83d0496525ebd068b267c86569105faaba Mon Sep 17 00:00:00 2001
From: Kaspar Schleiser <kaspar@schleiser.de>
Date: Mon, 19 Mar 2018 11:31:52 +0100
Subject: [PATCH] make: add test-murdock target

---
 Makefile.include         | 4 ++++
 makefiles/murdock.inc.mk | 6 ++++++
 2 files changed, 10 insertions(+)
 create mode 100644 makefiles/murdock.inc.mk

diff --git a/Makefile.include b/Makefile.include
index 4511cafed7..55fd18aedd 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -593,8 +593,12 @@ CFLAGS += -include '$(RIOTBUILD_CONFIG_HEADER_C)'
 # include mcuboot support
 include $(RIOTMAKE)/mcuboot.mk
 
+# include Murdock helpers
+include $(RIOTMAKE)/murdock.inc.mk
+
 # Sanity check, 'all' should be the default goal
 ifneq (all, $(.DEFAULT_GOAL))
   $(error .DEFAULT_GOAL := $(.DEFAULT_GOAL))
 endif
+
 endif # BOARD=none
diff --git a/makefiles/murdock.inc.mk b/makefiles/murdock.inc.mk
new file mode 100644
index 0000000000..029446e506
--- /dev/null
+++ b/makefiles/murdock.inc.mk
@@ -0,0 +1,6 @@
+test-murdock: link
+	cd $(RIOTBASE) && \
+		./.murdock make_test_job \
+		$$(realpath --relative-to $(RIOTBASE) $(APPDIR)) \
+		$(BOARD) \
+		$(HEXFILE)
-- 
GitLab