21 Commits

Author SHA1 Message Date
Alex White
8ce2cfc917 coverage: Fix option processing on FreeBSD
Covoar uses getopt() to process the command line options. If getopt() is
POSIX-compliant, it will return -1 when it encounters the first
non-option command line argument. It appears that it behaves this way on
FreeBSD, but on Linux getopt() continues to process arguments while
skipping any non-options. This changes the order of arguments passed to
covoar by coverage.py to group all options at the beginning. This allows
hosts with POSIX-compliant getopt() implementations to correctly process
all command line options.
2021-03-30 13:15:59 -05:00
Alex White
bfee5507b9 coverage: Give coverage bars red background 2021-03-30 13:15:58 -05:00
Alex White
4d21ff8d60 coverage/reports: Share common JS and CSS in reports
This moves all of the javascript and CSS files that are shared by the
symbol set HTML reports to the shared parent directory. It also includes
the javascript and CSS in the top-level index file.
2021-03-30 13:15:58 -05:00
Alex White
04597495e5 coverage/reports: Improve formatting and clarity
The coverage reports contain places where they display incorrect or
vague information particularly when some statistic is unavailable. This
has been fixed. The formatting and wording of various things has been
improved as well.
2021-03-30 13:15:58 -05:00
Alex White
4aabd9bbf7 covoar/reports: Add new statistics to summary
The following new statistics have been added to the summary report:
number of unreferenced symbols, total branch paths found, number of
branch paths not executed, and percentage of branch paths covered.
2021-03-30 13:15:58 -05:00
Alex White
f78ec7ceeb tester: Remove target from BSP coverage configs 2021-03-30 13:15:57 -05:00
Chris Johns
87262b429d Move all python commands to use env python
- If you host does not provide a python command consult the User
  manual for ways you can run the python commands.

- Full package paths are being used to avoid namespace pollution and
  crosstalk.
2020-09-26 10:49:27 +10:00
Vijay Kumar Banerjee
9f197dea76 rtemstoolkit/path : Add listdir function 2019-05-21 15:53:38 +10:00
Vijay Kumar Banerjee
53dd5e656a coverage: Add subdirectory name in HTML reports 2019-03-27 17:25:45 -05:00
Vijay Kumar Banerjee
8dcfc0ed8a coverage: remove utf-8 encoding in symbolset names 2019-03-22 10:26:12 -05:00
Vijay Kumar Banerjee
f6d30db99b Coverage: Add support for TSIM format 2019-02-14 09:43:40 +11:00
Vijay Kumar Banerjee
650569cfc5 tester : Add support to use QEMU serial console when coverage is enabled 2018-12-02 14:38:39 +11:00
Vijay Kumar Banerjee
a1498ab899 Coverage : install covoar in tester/bin 2018-11-27 16:55:26 +11:00
Vijay Kumar Banerjee
fb03e22c47 Coverage: add the style and js files to the symbol-set report directory 2018-11-17 12:31:32 +11:00
Chris Johns
e058db0281 python: Provide support to select a valid python version.
- Update imports after wrapping the code.
- Fix python3 issues.
- Fix config path issues for in repo and install runs.

Closes #3537
2018-11-08 18:13:45 +11:00
Vijay Kumar Banerjee
92a340c305 Coverage : Generate reports using the object files in cpukit 2018-10-25 15:47:26 -05:00
Vijay Kumar Banerjee
18208f826a Coverage: Add support to generate separate reports for each symbol-set
Invoke covoar multiple times from the script to generate separate
reports for each symbol-set.
2018-08-08 11:26:32 -05:00
Chris Johns
c1f2c3247d tester: Add line feeds to the coverage HTML report. 2018-06-19 13:42:03 +10:00
Chris Johns
e341a65347 tester: Make the path to covoar absolute to ignore the env PATH.
Using the environment's path to find covoar allow invalid versions
to be used which may vary in subtle ways. Find and use the covoar
that is build with the version of 'rtems-test'.

This patch means you do not need to install the tools before
running improving the development experience.

Closes #3458
2018-06-18 12:26:16 +10:00
Chris Johns
5195eb735a tester: Clean up the coverage python code. 2018-06-18 12:26:16 +10:00
Vijay Kumar Banerjee
b762312fae tester: Add script to generate html coverage report from covoar output
Add support in tester to run covoar and generate an html report to display
the summary of the coverage reports generated from covoar.

Co-authored-by : Cillian O'Donnell <cpodonnell8@gmail.com>
2018-06-05 18:09:19 -05:00