tests: kernel: style, tag, and category fixes

Fix coding style, test tags and use categories.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-04-21 16:52:43 -05:00 committed by Anas Nashif
parent e564d58b7d
commit 1609f251ee
22 changed files with 30 additions and 30 deletions

View File

@ -1,3 +1,3 @@
tests:
kernel.context:
kernel.common:
tags: core bat_commit

View File

@ -1,3 +1,3 @@
tests:
kernel.critical:
kernel.common:
tags: core bat_commit

View File

@ -1,3 +1,3 @@
tests:
kernel.earlysleep:
kernel.common:
tags: core

View File

@ -3,8 +3,8 @@ common:
min_ram: 32
tags: core
tests:
kernel.errno:
kernel.common.errno:
tags: core
kernel.errno.newlib:
kernel.common.errno.newlib:
extra_configs:
- CONFIG_NEWLIB_LIBC=y

View File

@ -1,8 +1,8 @@
tests:
kernel.fatal.stack_protection:
kernel.common.stack_protection:
extra_args: CONF_FILE=prj.conf
filter: CONFIG_ARCH_HAS_STACK_PROTECTION
tags: core ignore_faults
kernel.fatal.stack_sentinel:
kernel.common.stack_sentinel:
extra_args: CONF_FILE=sentinel.conf
tags: core ignore_faults

View File

@ -1,3 +1,3 @@
tests:
kernel.bootdelay:
tags: init
kernel.common.init:
tags: init bootdelay

View File

@ -130,7 +130,8 @@ void msg_receiver_unlimited(void)
void test_main(void)
{
test_mbox_init();
ztest_test_suite(test_mbox, ztest_unit_test(test_msg_receiver),
ztest_test_suite(test_mbox,
ztest_unit_test(test_msg_receiver),
ztest_unit_test(msg_receiver_unlimited));
ztest_run_test_suite(test_mbox);
}

View File

@ -1,4 +1,4 @@
tests:
kernel.sys_mem_pool:
kernel.memory_pool:
min_ram: 32
tags: kernel userspace mem_pool

View File

@ -1,4 +1,4 @@
tests:
kernel.memory_protection.app_memory:
kernel.memory_protection:
arch_whitelist: x86 arm arc
tags: memory_protection

View File

@ -1,4 +1,4 @@
tests:
kernel.memory_protection.stack_random:
arch_exclude: posix
tags: core
tags: memory_protection

View File

@ -1,4 +1,4 @@
tests:
kernel.memory_protection.stack:
kernel.memory_protection:
arch_exclude: nios2 xtensa posix
tags: bat_commit core ignore_faults

View File

@ -1,3 +1,3 @@
tests:
test:
kernel.multiprocessing:
platform_whitelist: esp32

View File

@ -1,4 +1,4 @@
tests:
kernel.timing.pending:
kernel.common.timing:
min_ram: 16
tags: core bat_commit

View File

@ -19,10 +19,9 @@ extern void test_poll_multi(void);
/*test case main entry*/
void test_main(void)
{
ztest_test_suite(poll_api
, ztest_unit_test(test_poll_no_wait)
, ztest_unit_test(test_poll_wait)
, ztest_unit_test(test_poll_multi)
);
ztest_test_suite(poll_api,
ztest_unit_test(test_poll_no_wait),
ztest_unit_test(test_poll_wait),
ztest_unit_test(test_poll_multi));
ztest_run_test_suite(poll_api);
}

View File

@ -1,3 +1,3 @@
tests:
kernel.timing:
kernel.common.timing:
tags: core

View File

@ -1,3 +1,3 @@
tests:
test:
kernel.multiprocessing:
platform_whitelist: esp32

View File

@ -1,3 +1,3 @@
tests:
kernel.smp:
kernel.multiprocessing:
platform_whitelist: esp32

View File

@ -1,4 +1,4 @@
tests:
arch.x86.interrupt:
arch.interrupt:
arch_whitelist: x86
tags: ignore_faults interrupt idt

View File

@ -1,3 +1,3 @@
tests:
kernel.workqueue.api:
kernel.workqueue:
tags: kernel

View File

@ -1,5 +1,5 @@
tests:
arch.xip:
arch.common.xip:
arch_exclude: xtensa
filter: not CONFIG_SOC_RISCV32_PULPINO
platform_exclude: cc3220sf_launchxl

View File

@ -1,3 +1,3 @@
tests:
misc.rbtree:
tags: rbtree
libraries.data_structures.rbtree:
tags: rbtree

View File

@ -1,3 +1,3 @@
tests:
libraries.ringbuffer:
libraries.data_structures:
tags: ring_buffer circular_buffer