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:
parent
ba287d2b27
commit
6add267377
6 changed files with 6 additions and 6 deletions
|
@ -59,7 +59,7 @@
|
||||||
#include <tinycrypt/ecc.h>
|
#include <tinycrypt/ecc.h>
|
||||||
#include <tinycrypt/ecc_dh.h>
|
#include <tinycrypt/ecc_dh.h>
|
||||||
#include <tinycrypt/ecc_platform_specific.h>
|
#include <tinycrypt/ecc_platform_specific.h>
|
||||||
#include <test_ecc_utils.h>
|
#include "test_ecc_utils.h"
|
||||||
#include <test_utils.h>
|
#include <test_utils.h>
|
||||||
#include <tinycrypt/constants.h>
|
#include <tinycrypt/constants.h>
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
#include <tinycrypt/constants.h>
|
#include <tinycrypt/constants.h>
|
||||||
#include <tinycrypt/sha256.h>
|
#include <tinycrypt/sha256.h>
|
||||||
#include <test_utils.h>
|
#include <test_utils.h>
|
||||||
#include <test_ecc_utils.h>
|
#include "test_ecc_utils.h"
|
||||||
#include <sys/util.h>
|
#include <sys/util.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <test_ecc_utils.h>
|
#include "test_ecc_utils.h"
|
||||||
#include <tinycrypt/constants.h>
|
#include <tinycrypt/constants.h>
|
||||||
#include <sys/util.h>
|
#include <sys/util.h>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
tests:
|
tests:
|
||||||
crypto.tinycrypt:
|
crypto.tinycrypt:
|
||||||
tags: tinycrypt crypto aes ccm
|
tags: tinycrypt crypto aes ccm
|
||||||
min_ram: 48
|
|
||||||
min_flash: 129
|
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
platform_whitelist: native_posix
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
tests:
|
tests:
|
||||||
crypto.tinycrypt:
|
crypto.tinycrypt:
|
||||||
min_ram: 48
|
|
||||||
tags: tinycrypt crypto sha256 hmac prng
|
tags: tinycrypt crypto sha256 hmac prng
|
||||||
|
platform_whitelist: native_posix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue