<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 20 Mar 2019 at 17:46, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>the RTEMS project has a covoar tool:<br>
<br>
<a href="https://git.rtems.org/rtems-tools/tree/tester/covoar" rel="noreferrer" target="_blank">https://git.rtems.org/rtems-tools/tree/tester/covoar</a><br>
<br>I have seen some reports generated by it, but I never used it myself. I <br>have trouble to find out how it works. There is nothing in the <br>documentation:<br>
<br>cd rtems-docs<br>grep -ri covoar .<br>
<br>There is some documentation available here:<br>
<br>
<a href="https://devel.rtems.org/wiki/GCI/Documentation/CoverageAnalysis/Coverage" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/GCI/Documentation/CoverageAnalysis/Coverage</a><br>
<br>If I invoke the rtems-test like this in the erc32 BSP build directory, I <br>get an error:<br>
<br>rtems-test --rtems-bsp=erc32-sis --rtems-tools=/build/rtems/5 --coverage <br>--target=sparc-rtems5 .<br>RTEMS Testing - Tester, 5.0.not_released<br> Command Line: /build/rtems/5/bin/rtems-test --rtems-bsp=erc32-sis <br>--rtems-tools=/build/rtems/5 --coverage --target=sparc-rtems5 .<br> Python: 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC]<br>Host: Linux-4.12.14-lp150.12.48-default-x86_64-with-glibc2.3.4 (Linux <br>huber-nb-linux.suse 4.12.14-lp150.12.48-default #1 SMP Tue Feb 12 <br>14:01:48 UTC 2019 (268f014) x86_64 x86_64)<br>Traceback (most recent call last):<br> File "/build/rtems/5/share/rtems/tester/rt/cmd-test.py", line 42, in <br><module><br> test.run(sys.argv[1:], command_path = base)<br> File "/build/rtems/5/share/rtems/tester/rt/test.py", line 300, in run<br> trace = cov_trace)<br> File "/build/rtems/5/share/rtems/tester/rt/coverage.py", line 363, in <br>__init__<br> self.target = self.macros['target']<br> File "/build/rtems/5/share/rtems/rtemstoolkit/macros.py", line 181, <br>in __getitem__<br> raise IndexError('key: %s' % (key))<br>IndexError: key: target<br>
<br></blockquote><div>Hi,</div><div><br></div><div>The covoar needs the .cov files to run which is supposed to be generated by a command like</div><div>this </div><div>====</div><div>$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<br></div><div>==== </div><div>But this runs into a segmentation fault. If my command is right (Please correct me if it isn't)</div><div>then I think it's because the sis coverage is not supported for erc32. :/</div><div><br></div><div>about rtems-test,</div><div>I have attached a patch that adds erc32-sis-cov.ini, this will fix the KeyError you're seeing,</div><div>but it will return with error 10 as it's trying to run the above command. If you run rtems-test</div><div>with `--no-clean` and `--coverage` options, you'll have a erc32-sis-symbols.ini file (and the .cov</div><div>files, when they're supported, like in leon3), which can be used to run covoar directly like</div><div>below ( but this won't run now as we don't have .cov file )</div><div><br></div><div><div>covoar -S $HOME/development/rtems/test/rtems-tools/tester/rtems/testing/coverage/erc32-sis-symbols.ini \</div><div>-O coverage -E$HOME/development/rtems/test/rtems-tools/tester/rtems/testing/coverage/Explanations.txt \</div><div>-p RTEMS-5 sparc-rtems5/c/erc32/testsuites/samples/hello.exe</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-- <br>Sebastian Huber, embedded brains GmbH<br>
<br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone : +49 89 189 47 41-16<br>Fax : +49 89 189 47 41-09<br>E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>PGP : Public key available on request.<br>
<br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>_______________________________________________<br>devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div></div>