add Makefile.tests_common
Contains common variables for all test Makefiles. Include from test Makefiles.
This commit is contained in:
parent
3e980184a8
commit
982eecd3a6
3
tests/Makefile.tests_common
Normal file
3
tests/Makefile.tests_common
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export BOARD ?= native
|
||||||
|
export RIOTBASE ?= $(CURDIR)/../..
|
||||||
|
export QUIET ?= 1
|
||||||
@ -1,11 +1,5 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_bloom
|
export PROJECT = test_bloom
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
ifneq (,$(filter msb-430,$(BOARD)))
|
ifneq (,$(filter msb-430,$(BOARD)))
|
||||||
include $(RIOTBASE)/Makefile.unsupported
|
include $(RIOTBASE)/Makefile.unsupported
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_bloom
|
export PROJECT = test_bloom
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
ifneq (,$(filter msb-430,$(BOARD)))
|
ifneq (,$(filter msb-430,$(BOARD)))
|
||||||
include $(RIOTBASE)/Makefile.unsupported
|
include $(RIOTBASE)/Makefile.unsupported
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_float
|
export PROJECT = test_float
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_hwtimer
|
export PROJECT = test_hwtimer
|
||||||
|
include ../Makefile.tests_common
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
# define application name
|
|
||||||
export PROJECT = test_hwtimer_spin
|
export PROJECT = test_hwtimer_spin
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
# modules to include
|
# modules to include
|
||||||
USEMODULE += auto_init
|
USEMODULE += auto_init
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_irq
|
export PROJECT = test_irq
|
||||||
#
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
ifeq (,$(filter native,$(BOARD)))
|
ifeq (,$(filter native,$(BOARD)))
|
||||||
include $(RIOTBASE)/Makefile.unsupported
|
include $(RIOTBASE)/Makefile.unsupported
|
||||||
|
|||||||
@ -1,14 +1,8 @@
|
|||||||
debug: CFLAGS += -g
|
debug: CFLAGS += -g
|
||||||
debug: CFLAGS += -DENABLE_DEBUG
|
debug: CFLAGS += -DENABLE_DEBUG
|
||||||
|
|
||||||
# name of your application
|
|
||||||
export PROJECT = test_nativenet
|
export PROJECT = test_nativenet
|
||||||
#
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD = native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
ifeq (,$(filter native,$(BOARD)))
|
ifeq (,$(filter native,$(BOARD)))
|
||||||
include $(RIOTBASE)/Makefile.unsupported
|
include $(RIOTBASE)/Makefile.unsupported
|
||||||
|
|||||||
@ -7,17 +7,8 @@
|
|||||||
#### ../../boards for board definitions (if you have one or more)
|
#### ../../boards for board definitions (if you have one or more)
|
||||||
####
|
####
|
||||||
|
|
||||||
# name of your application
|
|
||||||
export PROJECT =test_pnet
|
export PROJECT =test_pnet
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
ifeq ($(strip $(BOARD)),)
|
|
||||||
export BOARD = native
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE =$(CURDIR)/../..
|
|
||||||
export RIOTBOARD =$(RIOTBASE)/boards
|
|
||||||
|
|
||||||
ifeq ($(BOARD),stm32f4discovery)
|
ifeq ($(BOARD),stm32f4discovery)
|
||||||
include Makefile.$(BOARD)
|
include Makefile.$(BOARD)
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
# name of your project
|
|
||||||
export PROJECT = test_pthread
|
export PROJECT = test_pthread
|
||||||
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
## Modules to include.
|
## Modules to include.
|
||||||
USEMODULE += posix
|
USEMODULE += posix
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_semaphore
|
export PROJECT = test_semaphore
|
||||||
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
## Modules to include.
|
## Modules to include.
|
||||||
USEMODULE += semaphore
|
USEMODULE += semaphore
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_sha256
|
export PROJECT = test_sha256
|
||||||
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
## Modules to include.
|
## Modules to include.
|
||||||
USEMODULE += crypto_sha256
|
USEMODULE += crypto_sha256
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_shell
|
export PROJECT = test_shell
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
## Modules to include.
|
## Modules to include.
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_thread_basic
|
export PROJECT = test_thread_basic
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_thread_exit
|
export PROJECT = test_thread_exit
|
||||||
|
include ../Makefile.tests_common
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_thread_msg
|
export PROJECT = test_thread_msg
|
||||||
|
include ../Makefile.tests_common
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE =$(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
# name of your project
|
|
||||||
export PROJECT = test_thread_msg_block_w_queue
|
export PROJECT = test_thread_msg_block_w_queue
|
||||||
|
include ../Makefile.tests_common
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE =$(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
# name of your project
|
|
||||||
export PROJECT = test_thread_msg_block_wo_queue
|
export PROJECT = test_thread_msg_block_wo_queue
|
||||||
|
include ../Makefile.tests_common
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE =$(CURDIR)/../..
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
# name of your application
|
|
||||||
export PROJECT = test_vtimer_msg
|
export PROJECT = test_vtimer_msg
|
||||||
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
# for easy switching of boards
|
|
||||||
export BOARD ?= native
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
|
||||||
|
|
||||||
## Modules to include.
|
## Modules to include.
|
||||||
USEMODULE += auto_init
|
USEMODULE += auto_init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user