zephyr/tests/legacy/kernel/test_sleep
Mazen NEIFER 4713575cb1 tests: Introduced new config option to add extra stack size for tests.
This option is added in order to support Xtensa, which needs more stack than
other architecture. This allows having a centralized way to change stack
requirements for all tests.
This extra stack size is eaqual to 0 for most architectures, except Xtensa
which requires additional 768 bytes for each stack.

Change-Id: Ie5dcae1dfd29018d36ef35dae22dc4c1a2ecdc14
Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
2017-02-13 11:39:03 -08:00
..
src tests: Introduced new config option to add extra stack size for tests. 2017-02-13 11:39:03 -08:00
Makefile tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
README.txt
prj.conf kernel: add LEGACY_KERNEL option 2017-01-09 19:42:13 +00:00
testcase.ini

README.txt

Title: Nanokernel Sleep and Wakeup APIs

Description:

This test verifies that the nanokernel sleep and wakeup APIs operate as
expected.

---------------------------------------------------------------------------

Building and Running Project:

This nanokernel project outputs to the console.  It can be built and executed
on QEMU as follows:

    make qemu

---------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

---------------------------------------------------------------------------

Sample Output:

tc_start() - Test Nanokernel Sleep and Wakeup APIs

Nanokernel objects initialized
Test fiber started: id = 0x001030b8
Helper fiber started: id = 0x001028e8
Testing normal expiration of fiber_sleep()
Testing fiber_sleep() + fiber_fiber_wakeup()
Testing fiber_sleep() + isr_fiber_wakeup()
Testing fiber_sleep() + task_fiber_wakeup()
Testing nanokernel task_sleep()
===================================================================
PROJECT EXECUTION SUCCESSFUL