<div dir="ltr">It just shows this.(with only hello)<div><br></div><div><div>Running covoar for score</div><div>WARNING: Unable to read coverage file /home/lunatic/development/rtems/kernel/leon3/sparc-rtems5/c/leon3/testsuites/samples/hello/hello.exe.cov</div><div>ERROR: No information to analyze</div><div>***Cleaning tempfiles***</div><div>error: covoar failure exit code: 1</div></div><div><br></div><div>........................</div><div>The log file shows this </div><div>......................</div><div><div>RTEMS Testing - Tester, 5 (58acb6d61ac7 modified)</div><div>  2  Command Line: /home/lunatic/development/rtems/test/rtems-tools/tester/rtems-test --rtems-t    ools=/home/lunatic/development/rtems/5 --log=coverage_analysis.log --rtems-bsp=leon3_qemu -    -coverage --rtems-builddir=/home/lunatic/development/rtems/kernel/leon3 sparc-rtems5/c/leon    3/testsuites/samples/hello</div><div>  3  Python: 2.7.14 (default, Feb 27 2018, 20:43:24) [GCC 7.3.1 20180130 (Red Hat 7.3.1-2)]</div><div>  4 Host: Linux-4.15.8-300.fc27.x86_64-x86_64-with-fedora-27-Twenty_Seven (Linux lunatic 4.15.8    -300.fc27.x86_64 #1 SMP Fri Mar 9 18:11:36 UTC 2018 x86_64 x86_64)</div><div>  5 Coverage environment prepared</div><div>  6 [1/1] p:0 f:0 u:0 e:0 I:0 B:0 t:0 i:0 W:0 | sparc/leon3_qemu: hello.exe</div><div>  7 </div><div>  8 Passed:        1</div><div>  9 Failed:        0</div><div> 10 User Input:    0</div><div> 11 Expected Fail: 0</div><div> 12 Indeterminate: 0</div><div> 13 Benchmark:     0</div><div> 14 Timeout:       0</div><div> 15 Invalid:       0</div><div> 16 Wrong Version: 0</div><div> 17 Wrong Build:   0</div><div> 18 Wrong Tools:   0</div><div> 19 ----------------</div><div> 20 Total:         1</div><div> 21 </div><div> 22 Average test time: 0:00:01.505199</div><div> 23 Testing time     : 0:00:01.505199</div><div> 24 Running covoar for score</div><div> 25 shell: covoar -s /home/lunatic/coverage_test/coverage/score.symcfg -O /home/lunatic/coverag    e_test/test/score -f QEMU -T sparc-rtems5 -E /home/lunatic/development/rtems/test/rtems-too    ls/tester/rtems/testing/coverage/Explanations.txt -c .cov -e exe -p RTEMS-5 /home/lunatic/d    evelopment/rtems/kernel/leon3/sparc-rtems5/c/leon3/testsuites/samples/hello/hello.exe</div><div> 26 WARNING: Unable to read coverage file /home/lunatic/development/rtems/kernel/leon3/sparc-rt    ems5/c/leon3/testsuites/samples/hello/hello.exe.cov</div><div>                                                                             1,1           Top</div></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 13 April 2018 at 23:40, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Is there anywhere in that output that it shows the qemu command that is running?</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, 13 Apr 2018, 19:02 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 13 April 2018 at 23:29, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I can't say for certain but I don't think that will be visible to qemu.cfg unless it's a global variable. Chris might know off the top of his head.</div><div class="m_-4324155159322824435m_4261992701604138619HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, 13 Apr 2018, 18:51 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">can we set it in [coverage] ?</div><div class="gmail_extra"><br clear="all"></div></blockquote></div></div></div></blockquote><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">It runs with the same warnings of unable to read the .cov files</span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-4324155159322824435m_4261992701604138619HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 13 April 2018 at 23:15, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Alright so we're back to ini update stuff. That error is because in the old <a href="http://leon3-qemu.mc" rel="noreferrer noreferrer" target="_blank">leon3-qemu.mc</a> we had this global variable set. So you need to find out how to get that global variable set in the new leon3-qemu.ini<div dir="auto"><br></div><div dir="auto">Heres the old version from the .MC file<br><div dir="auto"><br></div><div dir="auto"><pre style="word-wrap:normal;font-family:consolas,"liberation mono",courier,monospace;margin-top:0px;margin-bottom:0px;padding:15px 0px;color:rgb(36,41,46);font-size:14px;background-color:rgb(255,255,255)"><div style="padding:0px 15px">[global]</div><div style="padding:0px 15px">bsp:                      none,    none,     'leon3'</div><div style="padding:0px 15px">coverage_supported:       none,    none,     '1'</div></pre></div></div></div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, 13 Apr 2018, 18:29 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It shows the following error <div><br></div><div>.......</div><div><div>RTEMS Testing - Tester, 5 (58acb6d61ac7 modified)</div><div>Coverage environment prepared</div><div>[ 3/13] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | sparc/leon3_qemu: cdtest.exe</div><div>[ 1/13] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | sparc/leon3_qemu: base_sp.exe</div><div>[ 2/13] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | sparc/leon3_qemu: capture.exe</div><div>[ 4/13] p:0  f:0  u:0  e:0  I:0  B:0  t:0  i:0  W:0  | sparc/leon3_qemu: fileio.exe</div><div>error: qemu.cfg:77: macro '%{coverage_supported}' not found</div><div>warning: switched to dry run due to errors</div><div>error: qemu.cfg:77: invalid if bool value:  %if %{coverage_supported}</div><div>error: qemu.cfg:77: macro '%{coverage_supported}' not found</div><div>warning: switched to dry run due to errors</div><div>error: qemu.cfg:77: invalid if bool value:  %if %{coverage_supported}</div><div>Traceback (most recent call last):</div><div>  File "/home/lunatic/development/<wbr>rtems/test/rtems-tools/tester/<wbr>rtems-test", line 40, in <module></div><div>    rt.test.run()</div><div>  File "/home/lunatic/development/<wbr>rtems/test/rtems-tools/tester/<wbr>rt/test.py", line 353, in run</div><div>    tst.reraise()</div><div>  File "/home/lunatic/development/<wbr>rtems/test/rtems-tools/tester/<wbr>rt/test.py", line 160, in reraise</div><div>    _test_reraise(*self.result)</div><div>NameError: global name '_test_reraise' is not defined</div><div>error: qemu.cfg:77: macro '%{coverage_supported}' not found</div><div>warning: switched to dry run due to errors</div><div>error: qemu.cfg:77: invalid if bool value:  %if %{coverage_supported}</div><div>error: qemu.cfg:77: macro '%{coverage_supported}' not found</div><div>warning: switched to dry run due to errors</div><div>error: qemu.cfg:77: invalid if bool value:  %if %{coverage_supported}</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 13 April 2018 at 22:54, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Ah yes, your missing the qemu arguments to run the coverage. Try this<div dir="auto"><br></div><div dir="auto"><pre style="word-wrap:normal;font-family:consolas,"liberation mono",courier,monospace;margin-top:0px;margin-bottom:0px;padding:15px 0px;color:rgb(36,41,46);font-size:14px;background-color:rgb(255,255,255)"><div style="padding:0px 15px"><span style="color:rgb(106,115,125)">#</span></div><div style="padding:0px 15px"><span style="color:rgb(106,115,125)"># Coverage analysis</span></div><div style="padding:0px 15px"><span style="color:rgb(106,115,125)">#</span></div><div style="padding:0px 15px">%define coverage_arg %{nil}</div><div style="padding:0px 15px">%if %{defined _coverage}</div><div style="padding:0px 15px">    %if %{coverage_supported}</div><div style="padding:0px 15px">        %define coverage_arg -exec-trace %{test_executable}.cov</div><div style="padding:0px 15px">    %else</div><div style="padding:0px 15px">        %error <span style="color:rgb(3,47,98)">"Coverage analysis unsupported for %{bsp}"</span></div><div style="padding:0px 15px">    %endif</div><div style="padding:0px 15px">%endif</div><div style="padding:0px 15px"><br></div><div style="padding:0px 15px"><span style="color:rgb(106,115,125)">#</span></div><div style="padding:0px 15px"><span style="color:rgb(106,115,125)"># Executable</span></div><div style="padding:0px 15px"><span style="color:rgb(106,115,125)">#</span></div><div style="padding:0px 15px">%execute %{qemu_cmd} %{qemu_opts_base} %{qemu_opts} -kernel %{test_executable} %{coverage_arg}</div></pre></div></div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, 13 Apr 2018, 18:18 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">sure <div><br></div><div>.........</div><div><br></div><div><div>#</div><div># RTEMS Tools Project (<a href="http://www.rtems.org/" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">http://www.rtems.org/</a>)</div><div># Copyright 2010-2014 Chris Johns (<a href="mailto:chrisj@rtems.org" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">chrisj@rtems.org</a>)</div><div># All rights reserved.</div><div>#</div><div># This file is part of the RTEMS Tools package in 'rtems-tools'.</div><div>#</div><div># Redistribution and use in source and binary forms, with or without</div><div># modification, are permitted provided that the following conditions are met:</div><div>#</div><div># 1. Redistributions of source code must retain the above copyright notice,</div><div># this list of conditions and the following disclaimer.</div><div>#</div><div># 2. Redistributions in binary form must reproduce the above copyright notice,</div><div># this list of conditions and the following disclaimer in the documentation</div><div># and/or other materials provided with the distribution.</div><div>#</div><div># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"</div><div># AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</div><div># IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</div><div># ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE</div><div># LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</div><div># CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</div><div># SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</div><div># INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</div><div># CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</div><div># ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</div><div># POSSIBILITY OF SUCH DAMAGE.</div><div>#</div><div><br></div><div>#</div><div># QEMU</div><div>#</div><div># Use a qemu command to run the executable in the qemu simulator.</div><div>#</div><div><br></div><div>%include %{_configdir}/base.cfg</div><div>%include %{_configdir}/checks.cfg</div><div><br></div><div>#</div><div># Console.</div><div>#</div><div>%define console_stdio</div><div>%include %{_configdir}/console.cfg</div><div><br></div><div>#</div><div># RTEMS version</div><div>#</div><div>%include %{_rtdir}/rtems/version.cfg</div><div><br></div><div>#</div><div># Qemu common option patterns.</div><div>#</div><div>#%define qemu_opts_base   -no-reboot -monitor none -serial stdio -nographic</div><div>#%define qemu_opts_base   -no-reboot -serial null -serial mon:stdio -nographic</div><div>%define qemu_opts_base  -no-reboot -monitor null -serial stdio -nographic</div><div>%define qemu_opts_no_net -net none</div><div>#</div><div># Qemu executable</div><div>#</div><div>%ifn %{defined bsp_qemu_opts}</div><div> %define bsp_qemu_opts %{nil}</div><div>%endif</div><div>%define qemu_cmd  qemu-system-%{bsp_arch}</div><div>%define qemu_opts %{bsp_qemu_opts}</div><div><br></div><div>#</div><div># Executable</div><div>#</div><div>%execute %{qemu_cmd} %{qemu_opts} -kernel %{test_executable}</div></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 13 April 2018 at 22:19, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Yeah that's fine but can you just paste the contents here anyway. I'm not near a laptop and I can't remember which branch your starting from.</div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, 13 Apr 2018, 13:51 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I haven't made any local changes to qemu.cfg </div><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 13 April 2018 at 11:43, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">No that's the right one. I think it might be something to do with qemu.cfg in rtems-tools then. What's in your qemu.cfg? It's in rtems-tools/tester/rtems/<wbr>testing</div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, 13 Apr 2018, 06:39 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I manually built qemu from here <div><br></div><div><a href="https://github.com/AdaCore/qemu" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:16px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/AdaCore/<wbr>qemu</a> <br></div><div><br></div><div>I guess this is regular qemu , please send a link for couverture qemu for manual build.</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 12 April 2018 at 22:23, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Ah that's good progress, those .cov files are supposed to be generated by couverture-qemu as the test are run. They contain the trace data. Are you definitely running couverture-qemu and not regular qemu?</div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294HOEnZb"><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294h5"><br><div class="gmail_quote"><div dir="ltr">On Thu, 12 Apr 2018, 17:41 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I got the parsing of the coverage from the ini file running , now I'm getting the following error and warnings .<div><div><br></div><div><div><br></div><div>....</div><div><br></div><div><div>Running covoar for score</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/base_sp/base_sp.exe.<wbr>cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/capture/capture.exe.<wbr>cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/cdtest/cdtest.exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/fileio/fileio.exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/hello/hello.exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/iostream/cxx_iostream.<wbr>exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/loopback/loopback.exe.<wbr>cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/minimum/minimum.exe.<wbr>cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/nsecs/nsecs.exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/paranoia/paranoia.exe.<wbr>cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/pppd/pppd.exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/ticker/ticker.exe.cov</div><div>WARNING: Unable to read coverage file /home/lunatic/development/<wbr>rtems/kernel/leon3/sparc-<wbr>rtems5/c/leon3/testsuites/<wbr>samples/unlimited/unlimited.<wbr>exe.cov</div><div>ERROR: No information to analyze</div><div>***Cleaning tempfiles***</div><div>error: covoar failure exit code: 1</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 10 April 2018 at 18:10, Vijay Kumar Banerjee <span dir="ltr"><<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I managed to get the tests running with the following two patches .<div>Please review them .</div></div><div class="gmail_extra"><span class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344m_3814454247014296863gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div></font></span><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344h5">
<br><div class="gmail_quote">On 9 April 2018 at 15:28, Vijay Kumar Banerjee <span dir="ltr"><<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div><br><br><div class="gmail_quote"><div dir="ltr">On Fri, 6 Apr 2018, 02:24 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tried to solve the empty get in the way shown in the patch , but it doesn't seems to work, I'm getting the following error now <div><br></div><div><div>RTEMS Testing - Tester, 5 (1ed6e2e64090)</div><div>Traceback (most recent call last):</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/<wbr>rtems-test", line 40, in <module></div><div>    rt.test.run()</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/rt/<wbr>test.py", line 303, in run</div><div>    bsp = config.load(bsp[1], opts)</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/rt/<wbr>config.py", line 461, in load</div><div>    return opts.defaults['bsp']</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/<wbr>rtemstoolkit/macros.py", line 190, in __getitem__</div><div>    raise IndexError('key: %s' % (key))</div><div>IndexError: key: bsp</div></div><div><br></div><div class="gmail_extra"></div></div></blockquote></div></div></span><div dir="auto">I still Couldn't figure out why it's happening, when I use RawConfigParse , it seems to run nicely though . </div><div dir="auto"><br></div><div dir="auto">Any Ideas on solving it without using RawConfigParser ?</div><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344m_3814454247014296863h5"><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344m_3814454247014296863m_-7025635009554818109m_-1932434445594875856gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 5 April 2018 at 11:51, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 4 Apr 2018, 11:18 Vijay Kumar Banerjee, <<a href="mailto:vijaykumar9597@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">vijaykumar9597@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I got the rtems-test running <div><br></div><div>I found that get_item_names(section, err) in configuration.py  was returning an empty list to the </div><div>item_names in load(bsp,opts) for config.py this was giving out the error mandatory item not found .</div><div><br></div><div>I have attached the patch file .</div><div><br></div><div>current status : </div><div>rtems-test is running without coverage</div><div><br></div><div>running coverage gives the following error :</div><div><br></div><div><div>RTEMS Testing - Tester, 5 (092c569e81ae)</div><div>Traceback (most recent call last):</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/<wbr>rtems-test", line 40, in <module></div><div>    rt.test.run()</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/rt/<wbr>test.py", line 310, in run</div><div>    coverage = coverage_get_obj(opts, path_to_builddir[1])</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/rt/<wbr>test.py", line 230, in coverage_get_obj</div><div>    coverage_obj = coverage.coverage_run(opts.<wbr>defaults, path_to_builddir)</div><div>  File "/home/lunatic/development/<wbr>rtems/rtems-tools/tester/rt/<wbr>coverage.py", line 335, in __init__</div><div>    self.report_format = self.config_map['report_<wbr>format'][2]</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"></div></span><div dir="auto">This is back to the difference in cfg formats. It's looking for the last line here</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/cillianodonnell/rtems-tools/blob/coverage/tester/rtems/testing/bsps/leon3-qemu.mc" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/<wbr>cillianodonnell/rtems-tools/<wbr>blob/coverage/tester/rtems/<wbr>testing/bsps/leon3-qemu.mc</a><br></div><div dir="auto"><br></div><div dir="auto">Which is now</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/cillianodonnell/rtems-tools/blob/ini-update/tester/rtems/testing/bsps/leon3_qemu.ini" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/<wbr>cillianodonnell/rtems-tools/<wbr>blob/ini-update/tester/rtems/<wbr>testing/bsps/leon3_qemu.ini</a><br></div><div dir="auto"><br></div><div dir="auto">It's trying to grab the 'html' text so it can trigger the right section of code in coverage.py</div><div dir="auto"><br></div><div dir="auto">It's something just to tell which format we want the report to output</div></div></blockquote><div><br></div><div>Understood , I'll come to that after I manage to get the test running first . </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>TypeError: 'NoneType' object has no attribute '__getitem__'</div></div><div><br></div><div><br></div><div><div>Thanks </div></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344m_3814454247014296863m_-7025635009554818109m_-1932434445594875856m_1469656344329401499m_-6208427953382774662gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div>
<br><div class="gmail_quote">On 4 April 2018 at 11:16, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 04/04/2018 06:36, Vijay Kumar Banerjee wrote:<br>
> after pulling the ini-update branch from <br>
> <a href="https://github.com/cillianodonnell/rtems-tools/tree/ini-update" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/<wbr>cillianodonnell/rtems-tools/<wbr>tree/ini-update</a><br>
><br>
<br>
</span>Any local changes?<br>
<span><br>
> I tried running the rtems-test with the following command<br>
><br>
> $HOME/development/rtems/rtems-<wbr>tools/tester/rtems-test<br>
> --rtems-tools=$HOME/<wbr>development/rtems/5 --log=coverage_analysis.log<br>
> --rtems-bsp=leon3_qemu --rtems-builddir=$HOME/<wbr>development/rtems/kernel/leon3<br>
> sparc-rtems5/c/leon3/<wbr>testsuites/samples<br>
><br>
> was getting the KeyError for 'coverage'<br>
><br>
<br>
</span>Please paste the command and output as it appears in the terminal?<br>
<span><br>
> current status : <br>
> the same command gives the error : <br>
> "mandatory item not found in bsp section : bsp," <br>
> to make sure I didn't break something , I also tried running from a freshly<br>
> downloaded directory as well, it gives the same error.<br>
<br>
</span>Did you try running the following command from the top of the source tree:<br>
<br>
 $ grep -r "mandatory item not found" *<br>
<br>
?<br>
<span class="m_-4324155159322824435m_4261992701604138619m_2201844538530658366m_-4946604230948766877m_-1388768451582427490m_6891018123898186762m_-2628209510560902864m_7722341182915561542m_3923450974570758055m_3962101207325719908m_-493976707130383279m_4215977360734118294m_-7328206888837669137m_-5331297749612157344m_3814454247014296863m_-7025635009554818109m_-1932434445594875856m_1469656344329401499m_-6208427953382774662HOEnZb"><font color="#888888"><br>
Chris<br>
</font></span></blockquote></div><br></div>
</blockquote></div></div></span></div>
</blockquote></div><br></div></div>
</blockquote></div></div></div></div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div></div>
</blockquote></div>
</div></div></blockquote></div><br></div>