diff --git a/tests/pkg_cryptoauthlib_internal-tests/Makefile b/tests/pkg_cryptoauthlib_internal-tests/Makefile new file mode 100644 index 0000000000..dd565effc7 --- /dev/null +++ b/tests/pkg_cryptoauthlib_internal-tests/Makefile @@ -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 diff --git a/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci b/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci new file mode 100644 index 0000000000..d544b926b5 --- /dev/null +++ b/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci @@ -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 diff --git a/tests/pkg_cryptoauthlib_internal-tests/main.c b/tests/pkg_cryptoauthlib_internal-tests/main.c new file mode 100644 index 0000000000..181c0f8aaa --- /dev/null +++ b/tests/pkg_cryptoauthlib_internal-tests/main.c @@ -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 + * + * @} + */ + +#include "cryptoauthlib_test.h" + +int main(void) +{ + /* Set device to ATECC508A */ + atca_run_cmd("508"); + + atca_run_cmd("unit"); + + return 0; +}