Skip to content

Commit

Permalink
add Makefile.tests_common
Browse files Browse the repository at this point in the history
Contains common variables for all test Makefiles.
Include from test Makefiles.
  • Loading branch information
LudwigKnuepfer committed Feb 21, 2014
1 parent 3e98018 commit 982eecd
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 121 deletions.
3 changes: 3 additions & 0 deletions tests/Makefile.tests_common
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export BOARD ?= native
export RIOTBASE ?= $(CURDIR)/../..
export QUIET ?= 1
8 changes: 1 addition & 7 deletions tests/test_bloom/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# name of your application
export PROJECT = test_bloom

# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

ifneq (,$(filter msb-430,$(BOARD)))
include $(RIOTBASE)/Makefile.unsupported
Expand Down
8 changes: 1 addition & 7 deletions tests/test_bloom_bytes/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# name of your application
export PROJECT = test_bloom

# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

ifneq (,$(filter msb-430,$(BOARD)))
include $(RIOTBASE)/Makefile.unsupported
Expand Down
8 changes: 1 addition & 7 deletions tests/test_float/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# name of your application
export PROJECT = test_float

# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
7 changes: 1 addition & 6 deletions tests/test_hwtimer/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# name of your application
export PROJECT = test_hwtimer

export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
8 changes: 1 addition & 7 deletions tests/test_hwtimer_spin/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# define application name
export PROJECT = test_hwtimer_spin

# for easy switching of boards
export BOARD ?= native

# the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

# modules to include
USEMODULE += auto_init
Expand Down
8 changes: 1 addition & 7 deletions tests/test_irq/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# name of your application
export PROJECT = test_irq
#
# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

ifeq (,$(filter native,$(BOARD)))
include $(RIOTBASE)/Makefile.unsupported
Expand Down
8 changes: 1 addition & 7 deletions tests/test_nativenet/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
debug: CFLAGS += -g
debug: CFLAGS += -DENABLE_DEBUG

# name of your application
export PROJECT = test_nativenet
#
# for easy switching of boards
export BOARD = native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

ifeq (,$(filter native,$(BOARD)))
include $(RIOTBASE)/Makefile.unsupported
Expand Down
11 changes: 1 addition & 10 deletions tests/test_pnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@
#### ../../boards for board definitions (if you have one or more)
####

# name of your application
export PROJECT =test_pnet

# 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
include ../Makefile.tests_common

ifeq ($(BOARD),stm32f4discovery)
include Makefile.$(BOARD)
Expand Down
7 changes: 1 addition & 6 deletions tests/test_pthread/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# name of your project
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.
USEMODULE += posix
Expand Down
7 changes: 1 addition & 6 deletions tests/test_semaphore/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# name of your application
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.
USEMODULE += semaphore
Expand Down
7 changes: 1 addition & 6 deletions tests/test_sha256/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# name of your application
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.
USEMODULE += crypto_sha256
Expand Down
8 changes: 1 addition & 7 deletions tests/test_shell/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# name of your application
export PROJECT = test_shell

# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

## Modules to include.

Expand Down
8 changes: 1 addition & 7 deletions tests/test_thread_basic/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# name of your application
export PROJECT = test_thread_basic

# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
8 changes: 1 addition & 7 deletions tests/test_thread_exit/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# name of your application
export PROJECT = test_thread_exit

# for easy switching of boards
export BOARD ?= native

# this has to be the absolute path of the RIOT-base dir
export RIOTBASE = $(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
7 changes: 1 addition & 6 deletions tests/test_thread_msg/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# name of your application
export PROJECT = test_thread_msg

export BOARD ?= native

# the absolute path of the RIOT-base dir
export RIOTBASE =$(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
7 changes: 1 addition & 6 deletions tests/test_thread_msg_block_w_queue/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# name of your project
export PROJECT = test_thread_msg_block_w_queue

export BOARD ?= native

# the absolute path of the RIOT-base dir
export RIOTBASE =$(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
7 changes: 1 addition & 6 deletions tests/test_thread_msg_block_wo_queue/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# name of your project
export PROJECT = test_thread_msg_block_wo_queue

export BOARD ?= native

# the absolute path of the RIOT-base dir
export RIOTBASE =$(CURDIR)/../..
include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
7 changes: 1 addition & 6 deletions tests/test_vtimer_msg/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# name of your application
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.
USEMODULE += auto_init
Expand Down

0 comments on commit 982eecd

Please sign in to comment.