tests/external_board_dirs: Test app for EXTERNAL_BOARD_DIRS
This commit is contained in:
parent
ba7815163c
commit
cf379660e9
11
tests/external_board_dirs/Makefile
Normal file
11
tests/external_board_dirs/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
|
# Require arch_native feature so this is not compiled for other boards in
|
||||||
|
# $(RIOTBOARD)/
|
||||||
|
FEATURES_REQUIRED += arch_native
|
||||||
|
|
||||||
|
# Set without '?=' to also verify the docker integration when set with =
|
||||||
|
EXTERNAL_BOARD_DIRS = $(CURDIR)/external_board_dir_1
|
||||||
|
EXTERNAL_BOARD_DIRS += $(CURDIR)/external_board_dir_2
|
||||||
|
|
||||||
|
include $(RIOTBASE)/Makefile.include
|
||||||
16
tests/external_board_dirs/README.md
Normal file
16
tests/external_board_dirs/README.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Test for `EXTERNAL_BOARD_DIRS`
|
||||||
|
==============================
|
||||||
|
|
||||||
|
This test contains two directories containing external boards, namely
|
||||||
|
`external_board_dir_1` and `external_board_dir_2`. Each contains a symlink to
|
||||||
|
boards/native (so that this test does not need to maintain boards), the first
|
||||||
|
is named `native1` and the second `native2`. The variable `EXTERNAL_BOARD_DIRS`
|
||||||
|
is set to contain both directories.
|
||||||
|
|
||||||
|
This test succeeds if:
|
||||||
|
|
||||||
|
1. `make info-boards-supported` lists `native native1 native2`
|
||||||
|
2. Building works for all three boards, e.g. by
|
||||||
|
a) `make BOARD=native`
|
||||||
|
b) `make BOARD=native1`
|
||||||
|
c) `make BOARD=native2`
|
||||||
1
tests/external_board_dirs/external_board_dir_1/native1
Symbolic link
1
tests/external_board_dirs/external_board_dir_1/native1
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../boards/native/
|
||||||
1
tests/external_board_dirs/external_board_dir_2/native2
Symbolic link
1
tests/external_board_dirs/external_board_dir_2/native2
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../boards/native/
|
||||||
32
tests/external_board_dirs/main.c
Normal file
32
tests/external_board_dirs/main.c
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2014 Freie Universität Berlin
|
||||||
|
*
|
||||||
|
* This file is subject to the terms and conditions of the GNU Lesser
|
||||||
|
* General Public License v2.1. See the file LICENSE in the top level
|
||||||
|
* directory for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ingroup examples
|
||||||
|
* @{
|
||||||
|
*
|
||||||
|
* @file
|
||||||
|
* @brief Hello World application
|
||||||
|
*
|
||||||
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||||
|
* @author Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
|
||||||
|
*
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
puts("Hello World!");
|
||||||
|
|
||||||
|
printf("You are running RIOT on a(n) %s board.\n", RIOT_BOARD);
|
||||||
|
printf("This board features a(n) %s MCU.\n", RIOT_MCU);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user