On Wed, 20 Mar 2019 at 17:46, Sebastian Huber < sebastian.hu...@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.hu...@embedded-brains.de > PGP : Public key available on request. > > Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel
From 9e328097efecbe4155e69958df6484e0bdf416cd Mon Sep 17 00:00:00 2001 From: Vijay Kumar Banerjee <vijaykumar9...@gmail.com> Date: Wed, 20 Mar 2019 20:34:46 +0530 Subject: [PATCH] Add erc32-sis-cov.ini --- tester/rtems/testing/bsps/erc32-sis-cov.ini | 41 +++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tester/rtems/testing/bsps/erc32-sis-cov.ini diff --git a/tester/rtems/testing/bsps/erc32-sis-cov.ini b/tester/rtems/testing/bsps/erc32-sis-cov.ini new file mode 100644 index 0000000..798de55 --- /dev/null +++ b/tester/rtems/testing/bsps/erc32-sis-cov.ini @@ -0,0 +1,41 @@ +# +# RTEMS Tools Project (http://www.rtems.org/) +# Copyright 2015 On-Line Applications Research Corporation (OAR). +# All rights reserved. +# +# This file is part of the RTEMS Tools package in 'rtems-tools'. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# + +# +# The erc32 BSP +# +[erc32-sis-cov] +bsp = erc32 +arch = sparc +target = sparc-rtems5 +tester = %{_rtscripts}/run.cfg +bsp_run_cmd = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-sis +bsp_run_opts = -nouartrx -r -tlim 600 s -cov +bsp_covoar_cmd = -S %{bsp_symbol_path} -E %{cov_explanations} -f TSIM -- 2.20.1
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel