mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests: add pkg_cryptoauthlib_internal-tests
This commit is contained in:
parent
7842c3dc6f
commit
83de1cf0c8
13
tests/pkg_cryptoauthlib_internal-tests/Makefile
Normal file
13
tests/pkg_cryptoauthlib_internal-tests/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
include ../Makefile.tests_common
|
||||
|
||||
# Test fails to build for these boards fails due to
|
||||
# redefinition of define AES_COUNT in library, which
|
||||
# is also defined in board header files
|
||||
BOARD_BLACKLIST := stk3600 stk3700
|
||||
|
||||
# due to memory constrains we ignore the cert test
|
||||
CFLAGS += -DDO_NOT_TEST_CERT
|
||||
USEPKG += cryptoauthlib
|
||||
USEMODULE += cryptoauthlib_test
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
20
tests/pkg_cryptoauthlib_internal-tests/Makefile.ci
Normal file
20
tests/pkg_cryptoauthlib_internal-tests/Makefile.ci
Normal file
@ -0,0 +1,20 @@
|
||||
BOARD_INSUFFICIENT_MEMORY := \
|
||||
sam10-xpro \
|
||||
saml11-xpro \
|
||||
blackpill \
|
||||
bluepill \
|
||||
i-nucleo-lrwan1 \
|
||||
nucleo-f302r8 \
|
||||
nucleo-l031k6 \
|
||||
arduino-duemilanove \
|
||||
arduino-leonardo \
|
||||
arduino-mega2560 \
|
||||
arduino-nano \
|
||||
arduino-uno \
|
||||
atmega1284p \
|
||||
atmega328p \
|
||||
derfmega128 \
|
||||
mega-xplained \
|
||||
microduino-corerf \
|
||||
saml10-xpro \
|
||||
waspmote-pro
|
31
tests/pkg_cryptoauthlib_internal-tests/main.c
Normal file
31
tests/pkg_cryptoauthlib_internal-tests/main.c
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C) 2019 HAW Hamburg
|
||||
*
|
||||
* 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 Calls some of the unit tests from the CryptoAuth Library
|
||||
*
|
||||
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "cryptoauthlib_test.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
/* Set device to ATECC508A */
|
||||
atca_run_cmd("508");
|
||||
|
||||
atca_run_cmd("unit");
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user