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

tests/net: add stub test for gcoap_forward_proxy

This adds enough to do compile testing for gcoap_forward_proxy.
A proper test would still be needed, though.

This still already exposed compilation issues.
This commit is contained in:
Marian Buschsieweke 2024-10-14 14:00:34 +02:00
parent 71b91a1d0e
commit a671229f09
No known key found for this signature in database
GPG Key ID: 758BD52517F79C41
4 changed files with 109 additions and 0 deletions

View File

@ -0,0 +1,10 @@
include ../Makefile.net_common
USEMODULE += auto_init_gnrc_netif
USEMODULE += gcoap_forward_proxy
USEMODULE += gnrc_ipv6_default
USEMODULE += netdev_default
USEMODULE += shell
USEMODULE += shell_cmds_default
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,60 @@
BOARD_INSUFFICIENT_MEMORY := \
airfy-beacon \
arduino-duemilanove \
arduino-leonardo \
arduino-mega2560 \
arduino-nano \
arduino-uno \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atmega8 \
atxmega-a3bu-xplained \
blackpill-stm32f103c8 \
bluepill-stm32f030c8 \
bluepill-stm32f103c8 \
calliope-mini \
derfmega128 \
hifive1 \
hifive1b \
i-nucleo-lrwan1 \
im880b \
mega-xplained \
microbit \
microduino-corerf \
msb-430 \
msb-430h \
nrf51dongle \
nrf6310 \
nucleo-c031c6 \
nucleo-f030r8 \
nucleo-f031k6 \
nucleo-f042k6 \
nucleo-f070rb \
nucleo-f072rb \
nucleo-f302r8 \
nucleo-f303k8 \
nucleo-f334r8 \
nucleo-l011k4 \
nucleo-l031k6 \
nucleo-l053r8 \
olimex-msp430-h1611 \
olimex-msp430-h2618 \
samd10-xmini \
saml10-xpro \
saml11-xpro \
slstk3400a \
stk3200 \
stm32f030f4-demo \
stm32f0discovery \
stm32f7508-dk \
stm32g0316-disco \
stm32l0538-disco \
stm32mp157c-dk2 \
telosb \
waspmote-pro \
weact-g030f6 \
yunjia-nrf51822 \
z1 \
zigduino \
#

View File

@ -0,0 +1,5 @@
TODO
====
This application is here to ensure that the `gcoap_forward_proxy` is at least compile tested.
A proper test will hopefully be implemented some day that replaces this stub.

View File

@ -0,0 +1,34 @@
/*
* Copyright (C) 2024 ML!PA Consulting GmbH
*
* 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 tests
* @{
*
* @file
* @brief test application for the GCoAP forward proxy
*
* @author Marian Buschsieweke <marian.buschsieweke@posteo.net>
* @}
*/
#include "msg.h"
#include "shell.h"
#define MAIN_QUEUE_SIZE (4)
static msg_t _main_msg_queue[MAIN_QUEUE_SIZE];
int main(void)
{
msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE);
char line_buf[SHELL_DEFAULT_BUFSIZE];
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
return 0;
}