<?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>Testing with Unity and CMock - nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60045/testing-with-unity-and-cmock---nrf9160</link><description>Hi, I am trying to do unit testing of my application, but at the moment I am not able even to compile and run a test of the example. I am using ncs v1.1.0 following this example: 
 https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.1.0/nrf/ug_unity_testing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Mar 2021 10:03:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60045/testing-with-unity-and-cmock---nrf9160" /><item><title>RE: Testing with Unity and CMock - nrf9160</title><link>https://devzone.nordicsemi.com/thread/301841?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 10:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846d5c77-d27e-44f5-a30d-27e404bf8943</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Tests can now be generated for other platforms as well, e.g. qemu_cortex_m3. Native_posix does not run on windows.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Krzysztof&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing with Unity and CMock - nrf9160</title><link>https://devzone.nordicsemi.com/thread/294856?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 12:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:442ccbd6-ef73-423d-8b77-87e07dda6a11</guid><dc:creator>leox</dc:creator><description>&lt;p&gt;any updates on this, Tested in Linux which works fine with NCS V1.4.2. but can&amp;#39;t get it run in windows (no native posix support). Any suggestions on how to get windows setup to work?&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;west&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="n"&gt;native_posix&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing with Unity and CMock - nrf9160</title><link>https://devzone.nordicsemi.com/thread/246277?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c5d013-478d-4213-acab-292a121a3a65</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Thank you, in the meantime, I have updated to the last version of NCS, but I will have this in mind when trying. I Will let you know if I manage to run it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing with Unity and CMock - nrf9160</title><link>https://devzone.nordicsemi.com/thread/244421?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 12:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f3182fd-d9aa-41a6-81b0-661d2c580abd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like you are running a 64 bit installation, and native_posix requires that you have gcc-multilib installed:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/boards/posix/native_posix/doc/index.html"&gt;https://docs.zephyrproject.org/latest/boards/posix/native_posix/doc/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sample&amp;nbsp;../ncs/nrf/tests/unity/example_test/ will not compile out-of-the-box. It seems to generate a runner/runner_example_test.c with a main() function, which is in conflict of the #define in ../ncs/zephyr/arch/posix/include/posix_cheats.h:44:19. Changing the int main(void) to void zephyr_app_main(void) and it compiles and runs as it should. I&amp;#39;ll report this internally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>