Cosmetic changes to sys_kernel output
Eliminates confusing references to "channel", and improves readability of project output. Change-Id: Ib4f699caae5a015832207a408bd168903e791756 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
parent
b2834dd29f
commit
c82e6e8ae3
7 changed files with 277 additions and 177 deletions
|
@ -2,8 +2,8 @@ Title: SysKernel
|
|||
|
||||
Description:
|
||||
|
||||
The SysKernel test measures the performance of the sema, lifo, fifo and stack
|
||||
objects provided by the nanokernel.
|
||||
The SysKernel test measures the performance of the nanokernel's semaphore,
|
||||
lifo, fifo and stack objects.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -37,96 +37,139 @@ KERNEL VERSION: <varies>
|
|||
Each test below are repeated 5000 times and the average
|
||||
time for one iteration is displayed.
|
||||
|
||||
TEST CASE: Semaphore channel - 'nano_fiber_sem_take_wait'
|
||||
DESCRIPTION: testing 'nano_sem_init','nano_fiber_sem_take_wait', 'nano_fiber_sem_give' functions;
|
||||
Starting test 'nano_fiber_sem_take_wait'. Please wait...
|
||||
TEST CASE: Semaphore #1
|
||||
TEST COVERAGE:
|
||||
nano_sem_init
|
||||
nano_fiber_sem_take_wait
|
||||
nano_fiber_sem_give
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Semaphore channel - 'nano_fiber_sem_take'
|
||||
DESCRIPTION: testing 'nano_sem_init','nano_fiber_sem_take', 'fiber_yield',
|
||||
'nano_fiber_sem_give' functions;
|
||||
Starting test 'nano_fiber_sem_take'. Please wait...
|
||||
TEST CASE: Semaphore #2
|
||||
TEST COVERAGE:
|
||||
nano_sem_init
|
||||
nano_fiber_sem_take
|
||||
fiber_yield
|
||||
nano_fiber_sem_give
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Semaphore channel - 'nano_task_sem_take_wait'
|
||||
DESCRIPTION: testing 'nano_sem_init','nano_fiber_sem_take_wait', 'nano_fiber_sem_give',
|
||||
'nano_task_sem_give', 'nano_task_sem_take_wait' functions;
|
||||
Starting test 'nano_task_sem_take_wait'. Please wait...
|
||||
TEST CASE: Semaphore #3
|
||||
TEST COVERAGE:
|
||||
nano_sem_init
|
||||
nano_fiber_sem_take_wait
|
||||
nano_fiber_sem_give
|
||||
nano_task_sem_give
|
||||
nano_task_sem_take_wait
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: LIFO channel - 'nano_fiber_lifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_lifo_init','nano_fiber_lifo_get_wait', 'nano_fiber_lifo_put' functions;
|
||||
Starting test 'nano_fiber_lifo_get_wait'. Please wait...
|
||||
TEST CASE: LIFO #1
|
||||
TEST COVERAGE:
|
||||
nano_lifo_init
|
||||
nano_fiber_lifo_get_wait
|
||||
nano_fiber_lifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: LIFO channel - 'nano_fiber_lifo_get'
|
||||
DESCRIPTION: testing 'nano_lifo_init','nano_fiber_lifo_get_wait', 'nano_fiber_lifo_get',
|
||||
'nano_fiber_lifo_put', 'fiber_yield' functions;
|
||||
Starting test 'nano_fiber_lifo_get'. Please wait...
|
||||
TEST CASE: LIFO #2
|
||||
TEST COVERAGE:
|
||||
nano_lifo_init
|
||||
nano_fiber_lifo_get_wait
|
||||
nano_fiber_lifo_get
|
||||
nano_fiber_lifo_put
|
||||
fiber_yield
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: LIFO channel - 'nano_task_lifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_lifo_init','nano_fiber_lifo_get_wait', 'nano_fiber_lifo_put',
|
||||
'nano_task_lifo_get_wait', 'nano_task_lifo_put' functions;
|
||||
Starting test 'nano_task_lifo_get_wait'. Please wait...
|
||||
TEST CASE: LIFO #3
|
||||
TEST COVERAGE:
|
||||
nano_lifo_init
|
||||
nano_fiber_lifo_get_wait
|
||||
nano_fiber_lifo_put
|
||||
nano_task_lifo_get_wait
|
||||
nano_task_lifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: FIFO channel - 'nano_fiber_fifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_fifo_init','nano_fiber_fifo_get_wait', 'nano_fiber_fifo_put' functions;
|
||||
Starting test 'nano_fiber_fifo_get_wait'. Please wait...
|
||||
TEST CASE: FIFO #1
|
||||
TEST COVERAGE:
|
||||
nano_fifo_init
|
||||
nano_fiber_fifo_get_wait
|
||||
nano_fiber_fifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: FIFO channel - 'nano_fiber_fifo_get'
|
||||
DESCRIPTION: testing 'nano_fifo_init','nano_fiber_fifo_get_wait', 'nano_fiber_fifo_get',
|
||||
'nano_fiber_fifo_put', 'fiber_yield' functions;
|
||||
Starting test 'nano_fiber_fifo_get'. Please wait...
|
||||
TEST CASE: FIFO #2
|
||||
TEST COVERAGE:
|
||||
nano_fifo_init
|
||||
nano_fiber_fifo_get_wait
|
||||
nano_fiber_fifo_get
|
||||
nano_fiber_fifo_put
|
||||
fiber_yield
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: FIFO channel - 'nano_task_fifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_fifo_init','nano_fiber_fifo_get_wait', 'nano_fiber_fifo_put',
|
||||
'nano_task_fifo_get_wait', 'nano_task_fifo_put' functions;
|
||||
Starting test 'nano_task_fifo_get_wait'. Please wait...
|
||||
TEST CASE: FIFO #3
|
||||
TEST COVERAGE:
|
||||
nano_fifo_init
|
||||
nano_fiber_fifo_get_wait
|
||||
nano_fiber_fifo_put
|
||||
nano_task_fifo_get_wait
|
||||
nano_task_fifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Stack channel - 'nano_fiber_stack_pop_wait'
|
||||
DESCRIPTION: testing 'nano_stack_init','nano_fiber_stack_pop_wait', 'nano_fiber_stack_push' functions;
|
||||
Starting test 'nano_fiber_stack_pop_wait'. Please wait...
|
||||
TEST CASE: Stack #1
|
||||
TEST COVERAGE:
|
||||
nano_stack_init
|
||||
nano_fiber_stack_pop_wait
|
||||
nano_fiber_stack_push
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Stack channel - 'nano_fiber_stack_pop'
|
||||
DESCRIPTION: testing 'nano_stack_init','nano_fiber_stack_pop_wait', 'nano_fiber_stack_pop',
|
||||
'nano_fiber_stack_push', 'fiber_yield' functions;
|
||||
Starting test 'nano_fiber_stack_pop'. Please wait...
|
||||
TEST CASE: Stack #2
|
||||
TEST COVERAGE:
|
||||
nano_stack_init
|
||||
nano_fiber_stack_pop_wait
|
||||
nano_fiber_stack_pop
|
||||
nano_fiber_stack_push
|
||||
fiber_yield
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Stack channel - 'nano_task_stack_pop_wait'
|
||||
DESCRIPTION: testing 'nano_stack_init','nano_fiber_stack_pop_wait', 'nano_fiber_stack_push',
|
||||
'nano_task_stack_pop_wait', 'nano_task_stack_push' functions;
|
||||
Starting test 'nano_task_stack_pop_wait'. Please wait...
|
||||
TEST CASE: Stack #3
|
||||
TEST COVERAGE:
|
||||
nano_stack_init
|
||||
nano_fiber_stack_pop_wait
|
||||
nano_fiber_stack_push
|
||||
nano_task_stack_pop_wait
|
||||
nano_task_stack_push
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
PROJECT EXECUTION SUCCESSFUL
|
||||
|
|
|
@ -37,96 +37,139 @@ KERNEL VERSION: <varies>
|
|||
Each test below are repeated 5000 times and the average
|
||||
time for one iteration is displayed.
|
||||
|
||||
TEST CASE: Semaphore channel - 'nano_fiber_sem_take_wait'
|
||||
DESCRIPTION: testing 'nano_sem_init','nano_fiber_sem_take_wait', 'nano_fiber_sem_give' functions;
|
||||
Starting test 'nano_fiber_sem_take_wait'. Please wait...
|
||||
TEST CASE: Semaphore #1
|
||||
TEST COVERAGE:
|
||||
nano_sem_init
|
||||
nano_fiber_sem_take_wait
|
||||
nano_fiber_sem_give
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Semaphore channel - 'nano_fiber_sem_take'
|
||||
DESCRIPTION: testing 'nano_sem_init','nano_fiber_sem_take', 'fiber_yield',
|
||||
'nano_fiber_sem_give' functions;
|
||||
Starting test 'nano_fiber_sem_take'. Please wait...
|
||||
TEST CASE: Semaphore #2
|
||||
TEST COVERAGE:
|
||||
nano_sem_init
|
||||
nano_fiber_sem_take
|
||||
fiber_yield
|
||||
nano_fiber_sem_give
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Semaphore channel - 'nano_task_sem_take_wait'
|
||||
DESCRIPTION: testing 'nano_sem_init','nano_fiber_sem_take_wait', 'nano_fiber_sem_give',
|
||||
'nano_task_sem_give', 'nano_task_sem_take_wait' functions;
|
||||
Starting test 'nano_task_sem_take_wait'. Please wait...
|
||||
TEST CASE: Semaphore #3
|
||||
TEST COVERAGE:
|
||||
nano_sem_init
|
||||
nano_fiber_sem_take_wait
|
||||
nano_fiber_sem_give
|
||||
nano_task_sem_give
|
||||
nano_task_sem_take_wait
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: LIFO channel - 'nano_fiber_lifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_lifo_init','nano_fiber_lifo_get_wait', 'nano_fiber_lifo_put' functions;
|
||||
Starting test 'nano_fiber_lifo_get_wait'. Please wait...
|
||||
TEST CASE: LIFO #1
|
||||
TEST COVERAGE:
|
||||
nano_lifo_init
|
||||
nano_fiber_lifo_get_wait
|
||||
nano_fiber_lifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: LIFO channel - 'nano_fiber_lifo_get'
|
||||
DESCRIPTION: testing 'nano_lifo_init','nano_fiber_lifo_get_wait', 'nano_fiber_lifo_get',
|
||||
'nano_fiber_lifo_put', 'fiber_yield' functions;
|
||||
Starting test 'nano_fiber_lifo_get'. Please wait...
|
||||
TEST CASE: LIFO #2
|
||||
TEST COVERAGE:
|
||||
nano_lifo_init
|
||||
nano_fiber_lifo_get_wait
|
||||
nano_fiber_lifo_get
|
||||
nano_fiber_lifo_put
|
||||
fiber_yield
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: LIFO channel - 'nano_task_lifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_lifo_init','nano_fiber_lifo_get_wait', 'nano_fiber_lifo_put',
|
||||
'nano_task_lifo_get_wait', 'nano_task_lifo_put' functions;
|
||||
Starting test 'nano_task_lifo_get_wait'. Please wait...
|
||||
TEST CASE: LIFO #3
|
||||
TEST COVERAGE:
|
||||
nano_lifo_init
|
||||
nano_fiber_lifo_get_wait
|
||||
nano_fiber_lifo_put
|
||||
nano_task_lifo_get_wait
|
||||
nano_task_lifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: FIFO channel - 'nano_fiber_fifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_fifo_init','nano_fiber_fifo_get_wait', 'nano_fiber_fifo_put' functions;
|
||||
Starting test 'nano_fiber_fifo_get_wait'. Please wait...
|
||||
TEST CASE: FIFO #1
|
||||
TEST COVERAGE:
|
||||
nano_fifo_init
|
||||
nano_fiber_fifo_get_wait
|
||||
nano_fiber_fifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: FIFO channel - 'nano_fiber_fifo_get'
|
||||
DESCRIPTION: testing 'nano_fifo_init','nano_fiber_fifo_get_wait', 'nano_fiber_fifo_get',
|
||||
'nano_fiber_fifo_put', 'fiber_yield' functions;
|
||||
Starting test 'nano_fiber_fifo_get'. Please wait...
|
||||
TEST CASE: FIFO #2
|
||||
TEST COVERAGE:
|
||||
nano_fifo_init
|
||||
nano_fiber_fifo_get_wait
|
||||
nano_fiber_fifo_get
|
||||
nano_fiber_fifo_put
|
||||
fiber_yield
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: FIFO channel - 'nano_task_fifo_get_wait'
|
||||
DESCRIPTION: testing 'nano_fifo_init','nano_fiber_fifo_get_wait', 'nano_fiber_fifo_put',
|
||||
'nano_task_fifo_get_wait', 'nano_task_fifo_put' functions;
|
||||
Starting test 'nano_task_fifo_get_wait'. Please wait...
|
||||
TEST CASE: FIFO #3
|
||||
TEST COVERAGE:
|
||||
nano_fifo_init
|
||||
nano_fiber_fifo_get_wait
|
||||
nano_fiber_fifo_put
|
||||
nano_task_fifo_get_wait
|
||||
nano_task_fifo_put
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Stack channel - 'nano_fiber_stack_pop_wait'
|
||||
DESCRIPTION: testing 'nano_stack_init','nano_fiber_stack_pop_wait', 'nano_fiber_stack_push' functions;
|
||||
Starting test 'nano_fiber_stack_pop_wait'. Please wait...
|
||||
TEST CASE: Stack #1
|
||||
TEST COVERAGE:
|
||||
nano_stack_init
|
||||
nano_fiber_stack_pop_wait
|
||||
nano_fiber_stack_push
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Stack channel - 'nano_fiber_stack_pop'
|
||||
DESCRIPTION: testing 'nano_stack_init','nano_fiber_stack_pop_wait', 'nano_fiber_stack_pop',
|
||||
'nano_fiber_stack_push', 'fiber_yield' functions;
|
||||
Starting test 'nano_fiber_stack_pop'. Please wait...
|
||||
TEST CASE: Stack #2
|
||||
TEST COVERAGE:
|
||||
nano_stack_init
|
||||
nano_fiber_stack_pop_wait
|
||||
nano_fiber_stack_pop
|
||||
nano_fiber_stack_push
|
||||
fiber_yield
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
TEST CASE: Stack channel - 'nano_task_stack_pop_wait'
|
||||
DESCRIPTION: testing 'nano_stack_init','nano_fiber_stack_pop_wait', 'nano_fiber_stack_push',
|
||||
'nano_task_stack_pop_wait', 'nano_task_stack_push' functions;
|
||||
Starting test 'nano_task_stack_pop_wait'. Please wait...
|
||||
TEST CASE: Stack #3
|
||||
TEST COVERAGE:
|
||||
nano_stack_init
|
||||
nano_fiber_stack_pop_wait
|
||||
nano_fiber_stack_push
|
||||
nano_task_stack_pop_wait
|
||||
nano_task_stack_push
|
||||
Starting test. Please wait...
|
||||
TEST RESULT: SUCCESSFUL
|
||||
DETAILS: Average time for 1 iteration: NNNNN nSec
|
||||
DETAILS: Average time for 1 iteration: NNNN nSec
|
||||
END TEST CASE
|
||||
|
||||
PROJECT EXECUTION SUCCESSFUL
|
||||
|
|
|
@ -180,11 +180,12 @@ int lifo_test(void)
|
|||
|
||||
/* test get wait & put fiber functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"LIFO channel - 'nano_fiber_lifo_get_wait'");
|
||||
"LIFO #1");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_lifo_init','nano_fiber_lifo_get_wait',"
|
||||
" 'nano_fiber_lifo_put' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_lifo_get_wait'");
|
||||
"\n\tnano_lifo_init"
|
||||
"\n\tnano_fiber_lifo_get_wait"
|
||||
"\n\tnano_fiber_lifo_put");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
lifo_test_init();
|
||||
|
||||
|
@ -206,13 +207,14 @@ int lifo_test(void)
|
|||
|
||||
/* test get/yield & put fiber functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"LIFO channel - 'nano_fiber_lifo_get'");
|
||||
"LIFO #2");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_lifo_init','nano_fiber_lifo_get_wait',"
|
||||
" 'nano_fiber_lifo_get',\n");
|
||||
fprintf(output_file,
|
||||
"\t'nano_fiber_lifo_put', 'fiber_yield' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_lifo_get'");
|
||||
"\n\tnano_lifo_init"
|
||||
"\n\tnano_fiber_lifo_get_wait"
|
||||
"\n\tnano_fiber_lifo_get"
|
||||
"\n\tnano_fiber_lifo_put"
|
||||
"\n\tfiber_yield");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
lifo_test_init();
|
||||
|
||||
|
@ -235,12 +237,14 @@ int lifo_test(void)
|
|||
|
||||
/* test get wait & put fiber/task functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"LIFO channel - 'nano_task_lifo_get_wait'");
|
||||
"LIFO #3");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_lifo_init','nano_fiber_lifo_get_wait',"
|
||||
" 'nano_fiber_lifo_put',\n");
|
||||
fprintf(output_file, "\t'nano_task_lifo_get_wait', 'nano_task_lifo_put' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_task_lifo_get_wait'");
|
||||
"\n\tnano_lifo_init"
|
||||
"\n\tnano_fiber_lifo_get_wait"
|
||||
"\n\tnano_fiber_lifo_put"
|
||||
"\n\tnano_task_lifo_get_wait"
|
||||
"\n\tnano_task_lifo_put");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
lifo_test_init();
|
||||
|
||||
|
|
|
@ -175,11 +175,12 @@ int fifo_test(void)
|
|||
|
||||
/* test get wait & put fiber functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"FIFO channel - 'nano_fiber_fifo_get_wait'");
|
||||
"FIFO #1");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_fifo_init','nano_fiber_fifo_get_wait',"
|
||||
" 'nano_fiber_fifo_put' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_fifo_get_wait'");
|
||||
"\n\tnano_fifo_init"
|
||||
"\n\tnano_fiber_fifo_get_wait"
|
||||
"\n\tnano_fiber_fifo_put");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
fifo_test_init();
|
||||
|
||||
|
@ -201,13 +202,14 @@ int fifo_test(void)
|
|||
|
||||
/* test get/yield & put fiber functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"FIFO channel - 'nano_fiber_fifo_get'");
|
||||
"FIFO #2");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_fifo_init','nano_fiber_fifo_get_wait',"
|
||||
" 'nano_fiber_fifo_get',\n");
|
||||
fprintf(output_file,
|
||||
"\t'nano_fiber_fifo_put', 'fiber_yield' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_fifo_get'");
|
||||
"\n\tnano_fifo_init"
|
||||
"\n\tnano_fiber_fifo_get_wait"
|
||||
"\n\tnano_fiber_fifo_get"
|
||||
"\n\tnano_fiber_fifo_put"
|
||||
"\n\tfiber_yield");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
fifo_test_init();
|
||||
|
||||
|
@ -230,13 +232,14 @@ int fifo_test(void)
|
|||
|
||||
/* test get wait & put fiber/task functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"FIFO channel - 'nano_task_fifo_get_wait'");
|
||||
"FIFO #3");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_fifo_init','nano_fiber_fifo_get_wait',"
|
||||
" 'nano_fiber_fifo_put',\n");
|
||||
fprintf(output_file,
|
||||
"\t'nano_task_fifo_get_wait', 'nano_task_fifo_put' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_task_fifo_get_wait'");
|
||||
"\n\tnano_fifo_init"
|
||||
"\n\tnano_fiber_fifo_get_wait"
|
||||
"\n\tnano_fiber_fifo_put"
|
||||
"\n\tnano_task_fifo_get_wait"
|
||||
"\n\tnano_task_fifo_put");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
fifo_test_init();
|
||||
|
||||
|
|
|
@ -143,11 +143,12 @@ int sema_test(void)
|
|||
int return_value = 0;
|
||||
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"Semaphore channel - 'nano_fiber_sem_take_wait'");
|
||||
"Semaphore #1");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_sem_init','nano_fiber_sem_take_wait',"
|
||||
" 'nano_fiber_sem_give' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_sem_take_wait'");
|
||||
"\n\tnano_sem_init"
|
||||
"\n\tnano_fiber_sem_take_wait"
|
||||
"\n\tnano_fiber_sem_give");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
sema_test_init();
|
||||
|
||||
|
@ -163,11 +164,13 @@ int sema_test(void)
|
|||
return_value += check_result(i, t);
|
||||
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"Semaphore channel - 'nano_fiber_sem_take'");
|
||||
"Semaphore #2");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_sem_init','nano_fiber_sem_take', 'fiber_yield',\n");
|
||||
fprintf(output_file, "\t'nano_fiber_sem_give' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_sem_take'");
|
||||
"\n\tnano_sem_init"
|
||||
"\n\tnano_fiber_sem_take"
|
||||
"\n\tfiber_yield"
|
||||
"\n\tnano_fiber_sem_give");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
sema_test_init();
|
||||
i = 0;
|
||||
|
@ -184,13 +187,14 @@ int sema_test(void)
|
|||
return_value += check_result(i, t);
|
||||
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"Semaphore channel - 'nano_task_sem_take_wait'");
|
||||
"Semaphore #3");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_sem_init','nano_fiber_sem_take_wait',"
|
||||
" 'nano_fiber_sem_give',\n");
|
||||
fprintf(output_file,
|
||||
"\t'nano_task_sem_give', 'nano_task_sem_take_wait' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_task_sem_take_wait'");
|
||||
"\n\tnano_sem_init"
|
||||
"\n\tnano_fiber_sem_take_wait"
|
||||
"\n\tnano_fiber_sem_give"
|
||||
"\n\tnano_task_sem_give"
|
||||
"\n\tnano_task_sem_take_wait");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
sema_test_init();
|
||||
|
||||
|
|
|
@ -170,11 +170,12 @@ int stack_test(void)
|
|||
|
||||
/* test get wait & put fiber functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"Stack channel - 'nano_fiber_stack_pop_wait'");
|
||||
"Stack #1");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_stack_init','nano_fiber_stack_pop_wait',"
|
||||
" 'nano_fiber_stack_push' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_stack_pop_wait'");
|
||||
"\n\tnano_stack_init"
|
||||
"\n\tnano_fiber_stack_pop_wait"
|
||||
"\n\tnano_fiber_stack_push");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
stack_test_init();
|
||||
|
||||
|
@ -191,13 +192,14 @@ int stack_test(void)
|
|||
|
||||
/* test get/yield & put fiber functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"Stack channel - 'nano_fiber_stack_pop'");
|
||||
"Stack #2");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_stack_init','nano_fiber_stack_pop_wait',"
|
||||
" 'nano_fiber_stack_pop',\n");
|
||||
fprintf(output_file,
|
||||
"\t'nano_fiber_stack_push', 'fiber_yield' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_fiber_stack_pop'");
|
||||
"\n\tnano_stack_init"
|
||||
"\n\tnano_fiber_stack_pop_wait"
|
||||
"\n\tnano_fiber_stack_pop"
|
||||
"\n\tnano_fiber_stack_push"
|
||||
"\n\tfiber_yield");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
stack_test_init();
|
||||
|
||||
|
@ -215,13 +217,14 @@ int stack_test(void)
|
|||
|
||||
/* test get wait & put fiber/task functions */
|
||||
fprintf(output_file, sz_test_case_fmt,
|
||||
"Stack channel - 'nano_task_stack_pop_wait'");
|
||||
"Stack #3");
|
||||
fprintf(output_file, sz_description,
|
||||
"testing 'nano_stack_init','nano_fiber_stack_pop_wait',"
|
||||
" 'nano_fiber_stack_push',\n");
|
||||
fprintf(output_file,
|
||||
"\t'nano_task_stack_pop_wait', 'nano_task_stack_push' functions;");
|
||||
printf(sz_test_start_fmt, "'nano_task_stack_pop_wait'");
|
||||
"\n\tnano_stack_init"
|
||||
"\n\tnano_fiber_stack_pop_wait"
|
||||
"\n\tnano_fiber_stack_push"
|
||||
"\n\tnano_task_stack_pop_wait"
|
||||
"\n\tnano_task_stack_push");
|
||||
printf(sz_test_start_fmt);
|
||||
|
||||
stack_test_init();
|
||||
|
||||
|
|
|
@ -60,10 +60,10 @@ const char sz_module_end_fmt[] = "\nEND MODULE";
|
|||
|
||||
const char sz_date_fmt[] = "\nBUILD_DATE: %s %s";
|
||||
const char sz_kernel_ver_fmt[] = "\nKERNEL VERSION: 0x%x";
|
||||
const char sz_description[] = "\nDESCRIPTION: %s";
|
||||
const char sz_description[] = "\nTEST COVERAGE: %s";
|
||||
|
||||
const char sz_test_case_fmt[] = "\n\nTEST CASE: %s";
|
||||
const char sz_test_start_fmt[] = "\nStarting test %s. Please wait...";
|
||||
const char sz_test_start_fmt[] = "\nStarting test. Please wait...";
|
||||
const char sz_case_result_fmt[] = "\nTEST RESULT: %s";
|
||||
const char sz_case_details_fmt[] = "\nDETAILS: %s";
|
||||
const char sz_case_end_fmt[] = "\nEND TEST CASE";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue