1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/external_board_dirs: Test app for EXTERNAL_BOARD_DIRS

This commit is contained in:
Marian Buschsieweke 2020-04-15 21:04:02 +02:00
parent ba7815163c
commit cf379660e9
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
5 changed files with 61 additions and 0 deletions

View 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

View 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`

View File

@ -0,0 +1 @@
../../../boards/native/

View File

@ -0,0 +1 @@
../../../boards/native/

View 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;
}