tests: tinycrypt: build only on native_posix

Move tinycrypt related header into test and make those tests only build
on native_posix. The tests are unit tests, ie. testing tinycrypt
functionality only without any dependency on the underlying system.

Long term we should move those to be true unit tests and create
functional and integration tests that use tinycrypt in the context of
Zephyr and for real use-cases.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-09-28 18:35:15 -04:00 committed by Kumar Gala
commit 6add267377
6 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@
#include <tinycrypt/ecc.h>
#include <tinycrypt/ecc_dh.h>
#include <tinycrypt/ecc_platform_specific.h>
#include <test_ecc_utils.h>
#include "test_ecc_utils.h"
#include <test_utils.h>
#include <tinycrypt/constants.h>

View file

@ -65,7 +65,7 @@
#include <tinycrypt/constants.h>
#include <tinycrypt/sha256.h>
#include <test_utils.h>
#include <test_ecc_utils.h>
#include "test_ecc_utils.h"
#include <sys/util.h>
#include <stdio.h>

View file

@ -56,7 +56,7 @@
*
*/
#include <test_ecc_utils.h>
#include "test_ecc_utils.h"
#include <tinycrypt/constants.h>
#include <sys/util.h>

View file

@ -1,6 +1,6 @@
tests:
crypto.tinycrypt:
tags: tinycrypt crypto aes ccm
min_ram: 48
min_flash: 129
timeout: 300
platform_whitelist: native_posix

View file

@ -1,4 +1,4 @@
tests:
crypto.tinycrypt:
min_ram: 48
tags: tinycrypt crypto sha256 hmac prng
platform_whitelist: native_posix