Skip to content

Commit

Permalink
tests/ieee802154_security: dummy test for CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed Dec 4, 2020
1 parent efafa2e commit 233c3f6
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ieee802154_security/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
USEMODULE += ieee802154
USEMODULE += ieee802154_security
USEMODULE += gnrc_netif_ieee802154

include ../driver_netdev_common/Makefile.netdev.mk
21 changes: 21 additions & 0 deletions tests/ieee802154_security/Makefile.ci
Original file line number Diff line number Diff line change
@@ -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 \
#
12 changes: 12 additions & 0 deletions tests/ieee802154_security/README.md
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions tests/ieee802154_security/main.c
Original file line number Diff line number Diff line change
@@ -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 <fabian.huessler@ovgu.de>
* @}
*/

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

0 comments on commit 233c3f6

Please sign in to comment.