- Timestamp:
-
07/28/17 13:37:08 (7 years ago)
- Author:
-
Cillian O'Donnell
- Comment:
-
Improve Documentation
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v14
|
v15
|
|
57 | 57 | = Coverage Analysis in RTEMS Tester = |
58 | 58 | == Symbol Set Configurtion == |
59 | | The tests run in rtems-test will be used to check what percentage of the symbols they cover and the symbols to be analysed are in the symbol set config file which can be found here |
| 59 | The tests run in rtems-test will have there trace data logged in a file called <test_name>.exe.cov. This will be used to check what percentage of the symbols they cover and the symbols to be analysed are in the symbol set config file which can be found here |
60 | 60 | {{{ |
61 | 61 | From top directory of rtems-tools |
… |
… |
|
69 | 69 | The format of the config file is |
70 | 70 | |
| 71 | {{{ |
71 | 72 | symbolset: |
72 | 73 | name = NAME_OF_SET |
… |
… |
|
80 | 81 | name = NAME_OF_ANOTHER_SET |
81 | 82 | lib = ... |
| 83 | }}} |
82 | 84 | |
83 | 85 | 1. Each set is defined with the keyword 'symbolset:' |
… |
… |
|
94 | 96 | |
95 | 97 | == Supported BSPS == |
96 | | Leon 3: Use 'rtems-bsp=leon3-qemu' with rtems-test cmd. |
| 98 | Leon 3: Use '--rtems-bsp=leon3-qemu' with rtems-test cmd. |
97 | 99 | |
98 | 100 | == Performing Coverage Analysis with rtems-test command == |
… |
… |
|
120 | 122 | }}} |
121 | 123 | |
122 | | After the testsuite is run, covoar then performs multiple runs for all tests on each symbol set in symbol_set.cfg. Covoar sections the objdump into seperate functions and uses the trace data from Couverture-Qemu that records trace blocks as 'executed' and 'not executed' to mark branches as 'taken' and 'not taken'. Covoar then creates coverage maps from the results. The maps are then merged together and a report is generated. The report is a html file that can be found in the directory created above coverage_test called report.html. |
| 124 | After the testsuite is run, covoar then performs multiple runs analysing the trace data collected by Couverture-QEMU for all tests on each symbol set in symbol_set.cfg. Covoar sections the objdump into seperate functions and uses the trace data from Couverture-Qemu that records trace blocks as 'executed' and 'not executed' to mark branches as 'taken' and 'not taken'. Covoar then creates coverage maps from the results. The maps are then merged together and a report is generated. The report is a html file that can be found in the directory created above coverage_test called report.html. |
123 | 125 | |
124 | 126 | {{{ |