[PATCH] Coverage: Add support for TSIM format

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Thu Feb 7 22:13:18 UTC 2019


On Fri, 8 Feb 2019 at 00:15, Chris Johns <chrisj at rtems.org> wrote:

> On 7/2/19 7:17 pm, Vijay Kumar Banerjee wrote:
> > I'm trying to do this ...
> >
> > ===========
> > diff --git a/tester/rtems/testing/bsps/leon3-sis-cov.ini
> > b/tester/rtems/testing/bsps/leon3-sis-cov.ini
> > index d60257c..e450b60 100644
> > --- a/tester/rtems/testing/bsps/leon3-sis-cov.ini
> > +++ b/tester/rtems/testing/bsps/leon3-sis-cov.ini
> > @@ -38,4 +38,4 @@ tester         = %{_rtscripts}/run.cfg
> >  target         = sparc-rtems5
> >  bsp_run_cmd    = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-sis
> >  bsp_run_opts   = -leon3 -nouartrx -r -tlim 200 s -cov
> > -bsp_covoar_cmd = -E %{cov_explanations} -f TSIM
> > +bsp_covoar_cmd = -S %{bsp_symbol_path} -p %{project_name} -E
> > %{cov_explanations} -f TSIM
>
> Can the common options be moved to coverage part of qemu.cfg?
>
> Since I'm trying with the sis. I added it to the run.cfg like this

#
# Coverage
#
%if %{defined coverage}
  %define covoar_cmd -S %{bsp_symbol_path} -p RTEMS-%{rtems_version} -E
%{cov_explanations}
%endif

When I print the macros from the config.py I see this macro created like
this...

 coverage:             'none'     'none'      '1'
 covoar_cmd:           'none'     'none'      '-S
/home/lunatic/development/rtems/rtems-tools/tester/rtems/testing/coverage/leo
\
                                              n3-sis-symbols.ini -p RTEMS-5
-E /home/lunatic/development/rtems/rtems-tools/tes \

ter/rtems/testing/coverage/Explanations.txt'

The only problem now is to expand it from coverage.py which is giving error.
If I print the macros list from the coverage.py , I see that the list is
missing this and some other macros. How to get the 'complete' list of
macros? :/

> diff --git a/tester/rtems/testing/defaults.mc <http://defaults.mc>
> > b/tester/rtems/testing/defaults.mc <http://defaults.mc>
> > index 54212e0..d3e16a9 100644
> > --- a/tester/rtems/testing/defaults.mc <http://defaults.mc>
> > +++ b/tester/rtems/testing/defaults.mc <http://defaults.mc>
> > @@ -122,5 +122,9 @@ _rtbase:             none,    none,     '%{_rtdir}'
> >  _rttesting:          none,    none,     '%{_rtbase}/rtems/testing'
> >  _configdir:          none,    none,
>  '%{_rtbase}/config:%{_rttesting}'
> >
> > +#Coverage macros
> > +bsp_symbol_path:     none,    none,
> > '%{_rtscripts}/coverage/%{bsp}-symbols.ini'
> > +project_name:        none,    none,      'RTEMS-%{rtems_version}'
> > +
> > ==========
> >
> > I'm getting an error "error: cannot expand default macro:
> %{rtems_version} "
> >
> > I see the rtems_version macro if I print the macros. How do I access
> this macro?
>
> Please add `--trace` to the command line and see how the cfg files are
> being
> processed. Compare this to a tester command that is working.
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190208/6edcf72c/attachment-0002.html>


More information about the devel mailing list