<div dir="auto">Ah nevermind.. just realised its already printing them out.</div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2017 9:50 pm, "Cillian O'Donnell" <<a href="mailto:cpodonnell8@gmail.com">cpodonnell8@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Tanu,<br><br></div>Thanks for the help, I had been grepping through the files and backtracking through the definitions. I was just wondering was there a quick way to just print it out that I didn't know about.<br><br></div>I also couldn't find the recipe for the bsp but the previous work I'm continuing on from worked for pc386 and leon2, the command I'm using is the standard command with an extra --coverage flag thats added in the work I'm continuing, it definitely worked in 2015.<br><br><pre class="m_-238303354790654383gmail-console" style="font-family:Georgia,"Times New Roman",serif">$HOME/development/rtems/test/<wbr>rtems-tools/tester/rtems-test --rtems-bsp=pc386 \
--log=log_pc386 --coverage \
--rtems-tools=$HOME/<wbr>development/rtems/4.12 \
$HOME/development/rtems/pc386/<wbr>i386-rtems4.12/c/pc386/<wbr>testsuites/</pre></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2017 at 20:34, Tanu Hari Dixit <span dir="ltr"><<a href="mailto:tokencolour@gmail.com" target="_blank">tokencolour@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Cillian,<br>
<br>
I usually do a git grep -i "<string>" to find out where possibly a<br>
macro or variable is used elsewhere in the code. Not the best way, but<br>
works mostly.<br>
Also %{qemu_cmd} has been defined here in the same file<br>
(<a href="https://devel.rtems.org/browser/rtems-tools/tester/rtems/testing/qemu.cfg#L60" rel="noreferrer" target="_blank">https://devel.rtems.org/brows<wbr>er/rtems-tools/tester/rtems/<wbr>testing/qemu.cfg#L60</a>).<br>
I also sometimes use winpdb to see what value a macro has but this is<br>
a long process to step into each line.<br>
I wanted to ask what command did you use exactly with rtems-test? I<br>
couldn't find a recipe for qemu simulation for pc386 in<br>
rtems-tools.git/tester/rtems/t<wbr>esting/bsps.<br>
<br>
Regards,<br>
Tanu Hari Dixit.<br>
<div><div class="m_-238303354790654383h5"><br>
On Wed, May 31, 2017 at 12:42 AM, Cillian O'Donnell<br>
<<a href="mailto:cpodonnell8@gmail.com" target="_blank">cpodonnell8@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm trying to run rtems-test for pc386 with the added --coverage tag for<br>
> couverture-qemu. All tests default to dry-run because of errors in qemu.cfg<br>
><br>
> error: qemu.cfg:81: execute failed: qemu-system-i386 -m 128 -boot b -hda<br>
> /home/cpod/development/rtems/t<wbr>est/rtems-tools/tester/rtems/t<wbr>esting/coverage/rtems-boot.img<br>
> -no-reboot -serial null -serial mon:stdio -nographic -append<br>
> "--console=com1;boot;" -kernel<br>
> /home/cpod/development/rtems/p<wbr>c386/i386-rtems4.12/c/pc386/te<wbr>stsuites/samples/unlimited/unl<wbr>imited.exe<br>
> -exec-trace coverage/unlimited.exe.cov: exit-code:2<br>
> warning: switched to dry run due to errors<br>
><br>
> The exit code I believe refers to 'no such file or directory'. In qemu.cfg<br>
> the line is:<br>
><br>
> %execute %{qemu_cmd} %{qemu_opts} -kernel %{test_executable} %{coverage_arg}<br>
><br>
> It's a bit tricky to trace those macros back to different files and see what<br>
> they have. Is there any way to just print those out when it runs so I can<br>
> take a look at them.<br>
><br>
> I tried %print %{qemu_cmd} and %echo %{qemu_cmd}. Is there any way to do<br>
> this in a config file?<br>
><br>
> Thanks,<br>
><br>
> Cillian.<br>
><br>
</div></div>> ______________________________<wbr>_________________<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<wbr>/listinfo/devel</a><br>
</blockquote></div><br></div>
</blockquote></div></div>