Browse Source

add Makefile.tests_common

Contains common variables for all test Makefiles.
Include from test Makefiles.
dev/timer
Ludwig Ortmann 9 years ago
parent
commit
982eecd3a6
  1. 3
      tests/Makefile.tests_common
  2. 8
      tests/test_bloom/Makefile
  3. 8
      tests/test_bloom_bytes/Makefile
  4. 8
      tests/test_float/Makefile
  5. 7
      tests/test_hwtimer/Makefile
  6. 8
      tests/test_hwtimer_spin/Makefile
  7. 8
      tests/test_irq/Makefile
  8. 8
      tests/test_nativenet/Makefile
  9. 11
      tests/test_pnet/Makefile
  10. 7
      tests/test_pthread/Makefile
  11. 7
      tests/test_semaphore/Makefile
  12. 7
      tests/test_sha256/Makefile
  13. 8
      tests/test_shell/Makefile
  14. 8
      tests/test_thread_basic/Makefile
  15. 8
      tests/test_thread_exit/Makefile
  16. 7
      tests/test_thread_msg/Makefile
  17. 7
      tests/test_thread_msg_block_w_queue/Makefile
  18. 7
      tests/test_thread_msg_block_wo_queue/Makefile
  19. 7
      tests/test_vtimer_msg/Makefile

3
tests/Makefile.tests_common

@ -0,0 +1,3 @@
export BOARD ?= native
export RIOTBASE ?= $(CURDIR)/../..
export QUIET ?= 1

8
tests/test_bloom/Makefile

@ -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

8
tests/test_bloom_bytes/Makefile

@ -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

8
tests/test_float/Makefile

@ -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
tests/test_hwtimer/Makefile

@ -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
tests/test_hwtimer_spin/Makefile

@ -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

8
tests/test_irq/Makefile

@ -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

8
tests/test_nativenet/Makefile

@ -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

11
tests/test_pnet/Makefile

@ -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)

7
tests/test_pthread/Makefile

@ -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

7
tests/test_semaphore/Makefile

@ -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

7
tests/test_sha256/Makefile

@ -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

8
tests/test_shell/Makefile

@ -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.

8
tests/test_thread_basic/Makefile

@ -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
tests/test_thread_exit/Makefile

@ -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
tests/test_thread_msg/Makefile

@ -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
tests/test_thread_msg_block_w_queue/Makefile

@ -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
tests/test_thread_msg_block_wo_queue/Makefile

@ -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
tests/test_vtimer_msg/Makefile

@ -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

Loading…
Cancel
Save