source: rtems-docs/user/testing/index.rst @ d45c51a

5
Last change on this file since d45c51a was d45c51a, checked in by Vijay Kumar Banerjee <vijaykumar9597@…>, on 02/03/20 at 10:05:58

user/testing: Add coverage analysis instructions

  • Property mode set to 100644
File size: 1.9 KB
Line 
1.. SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. Copyright (C) 2018 Chris Johns <chrisj@rtems.org>
4
5.. _Testing:
6
7Testing
8*******
9
10RTEMS developers run test executables when adding new features or testing a bug
11fix. All tests are run to make sure changes do not introduce regressions. Users
12can run the RTEMS tests to be certain the build of the kernel they have is
13functioning.
14
15The section describes using and configuring the RTEMS Tester and RTEMS Run
16tools, the types of laboratory set ups supported and how to add your BSP to the
17framework. The tools command line interfaces are detailed in
18:ref:`rtems-tester-command`.
19
20An RTEMS Test is an RTEMS executable where the application code is a
21test. Tests in RTEMS print banners to the console to indicate the configuration
22of the test and if it has start and finished.
23
24The RTEMS Tools Project provides the RTEMS Tester and RTEMS Run tools. The
25RTEMS Tester command is ``rtems-test`` and the RTEMS Run command is
26``rtems-run``. These commands manage the complexity of running embedded
27executables. The commands provide a consistent command line interface to a
28testing framework that supports the various run time and testing scenarios we
29encounter such as simulators, GDB and executing directly on target hardware.
30
31The RTEMS kernel code contains an extensive set of tests to exercise and test
32the RTEMS kernel. The tests check functionality, provide coverage testing and
33make sure the kernel is operating as intended on your target system. The
34testsuite has support to make creating a test simple and uniform.
35
36The tests are built by adding ``--enable-tests`` to the RTEMS build
37configuration command line. There are over 600 tests and building them does
38extend the RTEMS kernel's build time and use more disk space but it worth
39building and running them. The RTEMS test executables have the ``.exe`` file
40extension.
41
42.. toctree::
43
44   tests
45   configuration
46   coverage
47   consoles
48   simulation
49   gdb-jtag
50   tftp
Note: See TracBrowser for help on using the repository browser.