unified/tests: Adapt test_sha256 for unified kernel

Unified kernel invokes main() function in the init thread. This
eliminates the need for a separate thread for the test.

Change-Id: I4e6c4f212615d2135adf7971df32db1ad392c0e2
Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
This commit is contained in:
Dmitriy Korovkin 2016-10-27 15:28:38 -04:00 committed by Anas Nashif
commit 81c94161f5
4 changed files with 6 additions and 11 deletions

View file

@ -1,6 +1,5 @@
BOARD ?= qemu_x86
MDEF_FILE = prj.mdef
KERNEL_TYPE = micro
KERNEL_TYPE = unified
CONF_FILE = prj.conf
include $(ZEPHYR_BASE)/Makefile.inc

View file

@ -1,3 +1,4 @@
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_SHA256=y
CONFIG_MAIN_STACK_SIZE=40960

View file

@ -1,5 +0,0 @@
% Application : test SHA256 TinyCrypt APIs
% TASK NAME PRIO ENTRY STACK GROUPS
% ====================================================
TASK tStartTask 5 main 40960 [EXE]

View file

@ -1,16 +1,16 @@
[test]
tags = crypto sha256
tags = crypto sha256 unified_capable
build_only = false
timeout = 10800
slow = True
arch_whitelist = arm arc x86
filter = ( CONFIG_SRAM_SIZE > 32 or CONFIG_DCCM_SIZE > 32 or CONFIG_RAM_SIZE > 32 )
kernel = micro
kernel = unified
[test_nios2]
tags = crypto sha256
tags = crypto sha256 unified_capable
build_only = false
timeout = 10800
slow = True
arch_whitelist = nios2
kernel = micro
kernel = unified