This adds unit test for microkernel private pipes. The code piggybacks to the public pipe test (by including the same source file), so any updates to the test will be applied to both. Note that the prj.mdef are different for both tests, since the private pipes test move the pipes inside source code. So, both mdef files will need to be updated at the same time. Change-Id: I6fdb5eab7c3a1d6f4b72c26a3620cee0188b07a5 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
Title: test_pipe_priv
|
|
|
|
Description:
|
|
|
|
This test verifies that the microkernel pipe APIs operate as expected.
|
|
This also verifies the mechanism to define private pipe object and its usage.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
Building and Running Project:
|
|
|
|
This microkernel 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:
|
|
|
|
Starting pipe tests
|
|
===================================================================
|
|
Testing task_pipe_put() ...
|
|
Testing task_pipe_put_wait() ...
|
|
Testing task_pipe_put_wait_timeout() ...
|
|
Testing task_pipe_get() ...
|
|
Testing task_pipe_get_wait() ...
|
|
Testing task_pipe_get_wait_timeout() ...
|
|
===================================================================
|
|
PROJECT EXECUTION SUCCESSFUL
|