2009-08-30 08:49:10 +00:00
|
|
|
/*
|
2013-03-30 10:32:37 +00:00
|
|
|
ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
|
2009-08-30 08:49:10 +00:00
|
|
|
|
2013-03-30 10:32:37 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
2009-08-30 08:49:10 +00:00
|
|
|
|
2013-03-30 10:32:37 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2009-08-30 08:49:10 +00:00
|
|
|
|
2013-03-30 10:32:37 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2009-08-30 08:49:10 +00:00
|
|
|
*/
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @defgroup test Test Runtime
|
|
|
|
* @details Runtime code for the test suite execution, this code is not part
|
|
|
|
* of the OS and should not be included in user applications.
|
|
|
|
*/
|
|
|
|
|
2009-08-30 08:49:10 +00:00
|
|
|
/**
|
2010-01-05 17:14:09 +00:00
|
|
|
* @page testsuite Testing Strategy
|
2009-08-30 08:49:10 +00:00
|
|
|
* <h2>Description</h2>
|
|
|
|
* Most of the ChibiOS/RT demos link a set of software modules (test suite) in
|
|
|
|
* order to verify the proper working of the kernel, the port and the demo
|
2010-01-05 17:14:09 +00:00
|
|
|
* itself.
|
|
|
|
*
|
2010-01-07 15:23:38 +00:00
|
|
|
* <h2>Strategy by Component</h2>
|
2010-01-05 17:14:09 +00:00
|
|
|
* The OS components are tested in various modes depending on their importance:
|
|
|
|
* - <b>Kernel</b>. The kernel code is subject to rigorous testing. The test
|
|
|
|
* suite aims to test <b>all</b> the kernel code and reach a code coverage
|
|
|
|
* as close to 100% as possible. In addition to the code coverage, the kernel
|
|
|
|
* code is tested for <b>functionality</b> and benchmarked for <b>speed</b>
|
|
|
|
* and <b>size</b> before each stable release. In addition to the code
|
|
|
|
* coverage and functional testing a <b>batch compilation test</b> is
|
|
|
|
* performed before each release, the kernel is compiled by alternatively
|
|
|
|
* enabling and disabling all the various configuration options, the
|
|
|
|
* kernel code is expected to compile without errors nor warnings and
|
|
|
|
* execute the test suite without failures (a specific simulator is used
|
|
|
|
* for this execution test, it is done automatically by a script because
|
2010-04-18 11:48:03 +00:00
|
|
|
* the entire sequence can take hours).<br>
|
2010-01-05 17:14:09 +00:00
|
|
|
* All the tests results are included as reports in the OS distribution
|
2011-09-23 15:48:55 +00:00
|
|
|
* under <tt>./docs/reports</tt>.
|
2010-01-05 17:14:09 +00:00
|
|
|
* - <b>Ports</b>. The port code is tested by executing the kernel test
|
|
|
|
* suite on the target hardware. A port is validated only if it passes all
|
|
|
|
* the tests. Speed and size benchmarks for all the supported architectures
|
|
|
|
* are performed, both size and speed regressions are <b>monitored</b>.
|
|
|
|
* - <b>HAL</b>. The HAL high level code and device drivers implementations
|
2011-09-23 15:48:55 +00:00
|
|
|
* are tested through specific test applications under <tt>./testhal</tt>.
|
2010-01-05 17:14:09 +00:00
|
|
|
* - <b>Various</b>. The miscellaneous code is tested by use in the various
|
2011-09-21 17:10:15 +00:00
|
|
|
* demos.
|
2010-01-05 17:14:09 +00:00
|
|
|
* - <b>External Code</b>. Not tested, external libraries or components are
|
|
|
|
* used as-is or with minor patching where required, problems are usually
|
|
|
|
* reported upstream.
|
|
|
|
* .
|
|
|
|
* <h2>Kernel Test Suite</h2>
|
|
|
|
* The kernel test suite is divided in modules or test sequences. Each Test
|
|
|
|
* Module performs a series of tests on a specified kernel subsystem or
|
2009-08-30 08:49:10 +00:00
|
|
|
* subsystems and can report a failure/success status and/or a performance
|
|
|
|
* index as the test suite output.<br>
|
|
|
|
* The test suite is usually activated in the demo applications by pressing a
|
2011-09-21 17:10:15 +00:00
|
|
|
* button on the target board, see the readme file into the various demos
|
2010-01-05 17:14:09 +00:00
|
|
|
* directories. The test suite output is usually sent through a serial port
|
|
|
|
* and can be examined by using a terminal emulator program.
|
|
|
|
*
|
|
|
|
* <h2>Kernel Test Modules</h2>
|
2009-08-30 08:49:10 +00:00
|
|
|
*
|
|
|
|
* - @subpage test_threads
|
|
|
|
* - @subpage test_dynamic
|
|
|
|
* - @subpage test_msg
|
|
|
|
* - @subpage test_sem
|
|
|
|
* - @subpage test_mtx
|
|
|
|
* - @subpage test_events
|
|
|
|
* - @subpage test_mbox
|
|
|
|
* - @subpage test_queues
|
|
|
|
* - @subpage test_heap
|
|
|
|
* - @subpage test_pools
|
|
|
|
* - @subpage test_benchmarks
|
|
|
|
* .
|
|
|
|
*/
|