How can I use the covoar tool?

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Wed Mar 20 15:31:29 UTC 2019


On Wed, 20 Mar 2019 at 17:46, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> Hello,
>
> the RTEMS project has a covoar tool:
>
> https://git.rtems.org/rtems-tools/tree/tester/covoar
>
> I have seen some reports generated by it, but I never used it myself. I
> have trouble to find out how it works. There is nothing in the
> documentation:
>
> cd rtems-docs
> grep -ri covoar .
>
> There is some documentation available here:
>
> https://devel.rtems.org/wiki/GCI/Documentation/CoverageAnalysis/Coverage
>
> If I invoke the rtems-test like this in the erc32 BSP build directory, I
> get an error:
>
> rtems-test --rtems-bsp=erc32-sis --rtems-tools=/build/rtems/5 --coverage
> --target=sparc-rtems5 .
> RTEMS Testing - Tester, 5.0.not_released
>   Command Line: /build/rtems/5/bin/rtems-test --rtems-bsp=erc32-sis
> --rtems-tools=/build/rtems/5 --coverage --target=sparc-rtems5 .
>   Python: 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC]
> Host: Linux-4.12.14-lp150.12.48-default-x86_64-with-glibc2.3.4 (Linux
> huber-nb-linux.suse 4.12.14-lp150.12.48-default #1 SMP Tue Feb 12
> 14:01:48 UTC 2019 (268f014) x86_64 x86_64)
> Traceback (most recent call last):
>    File "/build/rtems/5/share/rtems/tester/rt/cmd-test.py", line 42, in
> <module>
>      test.run(sys.argv[1:], command_path = base)
>    File "/build/rtems/5/share/rtems/tester/rt/test.py", line 300, in run
>      trace = cov_trace)
>    File "/build/rtems/5/share/rtems/tester/rt/coverage.py", line 363, in
> __init__
>      self.target = self.macros['target']
>    File "/build/rtems/5/share/rtems/rtemstoolkit/macros.py", line 181,
> in __getitem__
>      raise IndexError('key: %s' % (key))
> IndexError: key: target
>
> Hi,

The covoar needs the .cov files to run which is supposed to be generated by
a command like
this
====
$HOME/development/rtems/5/bin/sparc-rtems5-sis -nouartrx -r -tlim 600 s
-cov
$HOME/development/rtems/kernel/erc32/sparc-rtems5/c/erc32/testsuites/samples/hello.exe
====
But this runs into a segmentation fault. If my command is right (Please
correct me if it isn't)
then I think it's because the sis coverage is not supported for erc32. :/

about rtems-test,
I have attached a patch that adds erc32-sis-cov.ini, this will fix the
KeyError you're seeing,
but it will return with error 10 as it's trying to run the above command.
If you run rtems-test
with `--no-clean` and `--coverage` options, you'll have a
erc32-sis-symbols.ini file (and the .cov
files, when they're supported, like in leon3), which can be used to run
covoar directly like
below ( but this won't run now as we don't have .cov file )

covoar -S
$HOME/development/rtems/test/rtems-tools/tester/rtems/testing/coverage/erc32-sis-symbols.ini
\
-O coverage
-E$HOME/development/rtems/test/rtems-tools/tester/rtems/testing/coverage/Explanations.txt
\
-p RTEMS-5 sparc-rtems5/c/erc32/testsuites/samples/hello.exe

-- 
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax     : +49 89 189 47 41-09
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190320/e5baeb4c/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-erc32-sis-cov.ini.patch
Type: text/x-patch
Size: 2469 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190320/e5baeb4c/attachment-0002.bin>


More information about the devel mailing list