mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #759 from LudwigOrtmann/tests_makefile
add Makefile.tests_common
This commit is contained in:
commit
9c0fc3b1e2
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
|
||||
|
||||
# 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
|
||||
@ -14,7 +8,6 @@ ifneq (,$(filter msb-430h,$(BOARD)))
|
||||
include $(RIOTBASE)/Makefile.unsupported
|
||||
else
|
||||
|
||||
## Modules to include.
|
||||
USEMODULE += hashes
|
||||
USEMODULE += bloom
|
||||
|
||||
|
@ -1,17 +1,10 @@
|
||||
# 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
|
||||
else
|
||||
|
||||
## Modules to include.
|
||||
USEMODULE += hashes
|
||||
USEMODULE += bloom
|
||||
USEMODULE += random
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,18 +1,10 @@
|
||||
# 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
|
||||
else
|
||||
|
||||
## Modules to include.
|
||||
|
||||
USEMODULE += auto_init
|
||||
USEMODULE += hwtimer
|
||||
USEMODULE += posix
|
||||
|
@ -1,28 +1,16 @@
|
||||
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
|
||||
else
|
||||
|
||||
## Modules to include.
|
||||
|
||||
USEMODULE += auto_init
|
||||
USEMODULE += hwtimer
|
||||
USEMODULE += nativenet
|
||||
USEMODULE += transceiver
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
debug: all
|
||||
|
||||
FORCE:
|
||||
touch main.c
|
||||
|
@ -1,34 +1,15 @@
|
||||
####
|
||||
#### Sample Makefile for building apps with the RIOT OS
|
||||
####
|
||||
#### The Sample Filesystem Layout is:
|
||||
#### /this makefile
|
||||
#### ../../RIOT
|
||||
#### ../../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)
|
||||
endif
|
||||
|
||||
## Modules to include.
|
||||
|
||||
USEMODULE += auto_init
|
||||
USEMODULE += posix
|
||||
USEMODULE += pnet
|
||||
USEMODULE += vtimer
|
||||
|
||||
ifeq ($(strip $(BOARD)),native)
|
||||
USEMODULE += nativenet
|
||||
else ifeq ($(strip $(BOARD)),msba2)
|
||||
|
@ -1,13 +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
|
||||
USEMODULE += pthread
|
||||
|
||||
@ -19,4 +12,3 @@ else
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
|
@ -1,13 +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
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
@ -1,13 +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
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
@ -1,13 +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)/../..
|
||||
|
||||
## Modules to include.
|
||||
include ../Makefile.tests_common
|
||||
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,13 +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
|
||||
USEMODULE += vtimer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user