<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 27, 2021 at 2:33 PM zack_on_the_speed_chanel <<a href="mailto:zack_on_the_speed_chanel@protonmail.ch">zack_on_the_speed_chanel@protonmail.ch</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"><div><div>Hello,</div><div>Last year I tried to do work and help to
contribute to RTEMS. I didn't get too far but now I think I now I have a
 better shot at it! I was able to complete the BSP and tools build, and
run the hello world examples.  I want to work on small tickets first and
 work my way into the source code. The ticket is asking for a test 
clock_create with clock monotonic.  here is the link for the ticket I'm referring to <a href="https://devel.rtems.org/ticket/3889" target="_blank">https://devel.rtems.org/ticket/3889</a> .My thinking is to look for code that
does something similar. In the ticket it says that there is a test with
clock_realtime. I was on the discord and someone suggested me to looking
 to the coverage tests. How come i don't see the function clock_create
when looking at the annotated assembly code?  Also I think the test
should be based on this <a href="https://git.rtems.org/rtems/tree/testsuites/psxtests/psxtimer02/psxtimer.c" target="_blank">https://git.rtems.org/rtems/tree/testsuites/psxtests/psxtimer02/psxtimer.c</a></div></div></blockquote><div><br></div><div> That was me on Discord. :)</div><div><br></div><div>Yep. psxtimer02 is a good test to start from since it is doing similar cases on a different clock.</div><div><br></div><div>The coverage I was suggesting to look at is here:<br><br><a href="https://ftp.rtems.org/pub/rtems/people/joel/coverage/coverage-2021-02-28/">https://ftp.rtems.org/pub/rtems/people/joel/coverage/coverage-2021-02-28/</a><br></div><div><br></div><div>Drill down to leon3 and posix and look at the timer methods (create, settime, gettime) for current coverage.</div><div><br></div><div>But I warn you, it may or may not actually support the CLOCK_REALTIME and CLOCK_MONOTONIC as required here:<br><br><a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_create.html">https://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_create.html</a><br></div><div><br></div><div>So coverage may be high because the implementation of the posix methods themselves are missing something.</div><div><br></div><div>Pull the thread a bit to see if the methods support the clock value in question. If so, we just need tests. If not, some code gets added to the timer manager and tests get added.</div><div><br></div><div>--joel</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div><div>Thanks <br></div>Zack</div><div><br></div>_______________________________________________<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>