From 233c3f60f3321abd751fd62a5ca025433310b54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20H=C3=BC=C3=9Fler?= Date: Thu, 3 Dec 2020 18:17:47 +0100 Subject: [PATCH] tests/ieee802154_security: dummy test for CI process --- tests/ieee802154_security/Makefile | 5 ++++ tests/ieee802154_security/Makefile.ci | 21 ++++++++++++++ tests/ieee802154_security/README.md | 12 ++++++++ tests/ieee802154_security/main.c | 40 +++++++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 tests/ieee802154_security/Makefile create mode 100644 tests/ieee802154_security/Makefile.ci create mode 100644 tests/ieee802154_security/README.md create mode 100644 tests/ieee802154_security/main.c diff --git a/tests/ieee802154_security/Makefile b/tests/ieee802154_security/Makefile new file mode 100644 index 0000000000000..aa9cd89cb772a --- /dev/null +++ b/tests/ieee802154_security/Makefile @@ -0,0 +1,5 @@ +USEMODULE += ieee802154 +USEMODULE += ieee802154_security +USEMODULE += gnrc_netif_ieee802154 + +include ../driver_netdev_common/Makefile.netdev.mk diff --git a/tests/ieee802154_security/Makefile.ci b/tests/ieee802154_security/Makefile.ci new file mode 100644 index 0000000000000..09b7719b4b165 --- /dev/null +++ b/tests/ieee802154_security/Makefile.ci @@ -0,0 +1,21 @@ +BOARD_INSUFFICIENT_MEMORY := \ + arduino-duemilanove \ + arduino-leonardo \ + arduino-mega2560 \ + arduino-nano \ + arduino-uno \ + atmega328p \ + i-nucleo-lrwan1 \ + nucleo-f030r8 \ + nucleo-f031k6 \ + nucleo-f042k6 \ + nucleo-l011k4 \ + nucleo-l031k6 \ + nucleo-l053r8 \ + nucleo-l552ze-q \ + stk3200 \ + stm32f030f4-demo \ + stm32f0discovery \ + stm32l0538-disco \ + waspmote-pro \ + # diff --git a/tests/ieee802154_security/README.md b/tests/ieee802154_security/README.md new file mode 100644 index 0000000000000..092213db5ac3c --- /dev/null +++ b/tests/ieee802154_security/README.md @@ -0,0 +1,12 @@ +Tests for module `ieee802154_security` +====================================== + +This is just a dummy test application to integrate the +module in the CI process, to check if it compiles. + +TODO: +Write a proper test application which runs on `native` +and uses `socket_zep`. + + +[#15150]: https://github.com/RIOT-OS/RIOT/pull/15150 diff --git a/tests/ieee802154_security/main.c b/tests/ieee802154_security/main.c new file mode 100644 index 0000000000000..8eb383999b479 --- /dev/null +++ b/tests/ieee802154_security/main.c @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg + * + * 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 ieee802154_security module + * + * @author Fabian Hüßler + * @} + */ + +#include "thread.h" +#include "shell.h" +#include "shell_commands.h" + +#include "net/gnrc/pktdump.h" +#include "net/gnrc.h" + +int main(void) +{ + /* enable pktdump output */ + gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID( + GNRC_NETREG_DEMUX_CTX_ALL, gnrc_pktdump_pid); + + gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump); + + /* start the shell */ + char line_buf[SHELL_DEFAULT_BUFSIZE]; + shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE); + + return 0; +}