<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ncs, zephyr ztest + zigbee subsystem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69887/ncs-zephyr-ztest-zigbee-subsystem</link><description>I want to implement integration tests of the ZigBee subsystem on nrf52 and looking for a way to launch them by CI script. We need such a feature for automatic testing after hardware assembly. My first problem is that when adding CONFIG_ZTEST to prj.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jan 2021 13:16:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69887/ncs-zephyr-ztest-zigbee-subsystem" /><item><title>RE: ncs, zephyr ztest + zigbee subsystem</title><link>https://devzone.nordicsemi.com/thread/288653?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 13:16:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4177e363-b9c8-48ce-a8fc-5bd6a07d5613</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got a reply from the Zigbee team now. They were unable to reproduce the issue, and the API for the zb_schedule_app_callback has not changed in NCS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is one functionality that one may not be aware of: the&amp;nbsp;&lt;/span&gt;&lt;tt&gt;ZB_SCHEDULE_APP_CALLBACK&lt;/tt&gt;&lt;span&gt;&amp;nbsp;macro is overridden by the&amp;nbsp;&lt;/span&gt;&lt;tt&gt;zb_osif_platform.h&lt;/tt&gt;&lt;span&gt;&amp;nbsp;file to resolve to the NCS-specific variant:&amp;nbsp;&lt;/span&gt;&lt;tt&gt;zigbee_schedule_callback&lt;/tt&gt;&lt;span&gt;, which allow us to call the ZBOSS scheduler API from interrupt as well as other thread contexts.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It would be good to know what it is you want to achieve:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Is it about mocking ZBOSS API?&lt;/li&gt;
&lt;li&gt;Testing pieces of ZBOSS API using the fully functional library?&lt;/li&gt;
&lt;li&gt;Running full samples on HW?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;There are a few tests, written for testing ZBOSS OSIF implementation, that use ZTEST. You&lt;/span&gt;&amp;nbsp;can take a look at them to get a good, working starting point. They are located under &amp;quot;nrf/tests/subsys/zigbee&amp;quot;. The &amp;quot;zboss_api&amp;quot; subdirectory implements tests described in the 2nd case and the &amp;quot;osif&amp;quot; implements the 1st case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs, zephyr ztest + zigbee subsystem</title><link>https://devzone.nordicsemi.com/thread/286848?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 13:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d35a3411-ca7c-4741-a709-9284109fafe1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Which version of NCS are you using? Did you make any other changes besides adding CONFIG_ZTEST=y to prj.conf? Ztest has been used successfully with Zigbee before, and I&amp;#39;m not sure what might cause the problem. I&amp;#39;ll ask the Zigbee team internally about this and come back to you. Please be aware that we are short staffed due to holiday season, so it might take some time before I get a response from them.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>