From 1318e18ab37c04bee53d0f9d1e2d2acea5331f4e Mon Sep 17 00:00:00 2001
From: Kaspar Schleiser <kaspar@schleiser.de>
Date: Fri, 1 Dec 2017 09:17:08 +0100
Subject: [PATCH] tests: deduce test application name from folder

---
 tests/Makefile.tests_common | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.tests_common b/tests/Makefile.tests_common
index bb1feb44d5..7bfc0a2858 100644
--- a/tests/Makefile.tests_common
+++ b/tests/Makefile.tests_common
@@ -1,7 +1,7 @@
-ifneq (,$(filter driver_%,$(APPLICATION)))
+APPLICATION ?= tests_$(notdir $(patsubst %/,%,$(CURDIR)))
+ifneq (,$(filter tests_driver_%,$(APPLICATION)))
     BOARD ?= samr21-xpro
 endif
 BOARD ?= native
 RIOTBASE ?= $(CURDIR)/../..
 QUIET ?= 1
-APPLICATION := tests_$(APPLICATION)
-- 
GitLab