<?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>ZTest cmake error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101517/ztest-cmake-error</link><description>Hi. I am new to Ztest and cannot get the basic example to work. I have taken the basic dev acadamy lesson 2 exercise 1 project and placed the test sample ( samples/subsys/testsuite/integration ) into the tests folder of the project as suggested in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jan 2024 04:49:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101517/ztest-cmake-error" /><item><title>RE: ZTest cmake error</title><link>https://devzone.nordicsemi.com/thread/462797?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 04:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec2d7127-1719-4d77-813f-143ae201f364</guid><dc:creator>lewishamilton</dc:creator><description>&lt;p&gt;&lt;em&gt;Nordic Semiconductor&lt;/em&gt;&lt;span&gt;&amp;nbsp;is a Norwegian fabless semiconductor company specializing in wireless communication technology that powers the Internet of Things (IoT)&amp;nbsp; &lt;a href="https://retrobowl-college.io"&gt;retro bowl college&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZTest cmake error</title><link>https://devzone.nordicsemi.com/thread/451002?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 09:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b37d3654-28cf-44f6-b84b-3e369b5b1886</guid><dc:creator>Adelaida Butler</dc:creator><description>&lt;p&gt;&lt;span&gt;If you want to change&amp;nbsp;&lt;/span&gt;&lt;span&gt;128bit freely,&amp;nbsp;you will have to change the Base UUID. &lt;a href="https://geometrydashlite.io"&gt;geometry dash&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZTest cmake error</title><link>https://devzone.nordicsemi.com/thread/435424?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 08:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c3b3e17-f91d-4ad8-85a8-5cbdc0f9d7c9</guid><dc:creator>geoffF</dc:creator><description>&lt;p&gt;Understood, they have been pretty helpful.&amp;nbsp; Do Nordic used ZTest for their own unit testing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZTest cmake error</title><link>https://devzone.nordicsemi.com/thread/435402?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 07:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18deb1da-a981-4d1b-8992-2a7ce1f14738</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;As Runar mentioned this is the zephyr test framework, so better wait for an answer on their discord channel. We don&amp;#39;t really have any experience with this.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZTest cmake error</title><link>https://devzone.nordicsemi.com/thread/434809?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 00:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb2ace1e-8821-4ae1-85ee-98aa9baaa865</guid><dc:creator>geoffF</dc:creator><description>&lt;p&gt;Thank you, appreciated.&amp;nbsp; I did ask on their Discord but new there and not sure how responsive it is.&amp;nbsp; I think I lack the understanding of how the tests stack on top of the parent project.&amp;nbsp; It is all just direct from samples though, no changes.&amp;nbsp; Looking at the Zephyr source having the below in the TESTS folder proj.config should include the required folder.&amp;nbsp; VSCode and seemingly twister does not pick that up though. The base project is a nRF5340 target, if that makes a difference.&amp;nbsp; Per the testsuite example though the test target/platform is just&amp;nbsp;native_posix.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;CONFIG_ZTEST=y&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;CONFIG_ZTEST_NEW_API=y&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;From /zephyr/CMakeLists.txt:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;if(CONFIG_ZTEST)&lt;br /&gt; list(APPEND SYSCALL_INCLUDE_DIRS ${ZEPHYR_BASE}/subsys/testsuite/ztest/include)&lt;br /&gt;endif()&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZTest cmake error</title><link>https://devzone.nordicsemi.com/thread/434688?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 11:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258bb006-d60b-4ba6-b654-90830b0c09e6</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will look into it. It might be that it&amp;#39;s better to ask the Zephyr project &lt;a href="https://zephyrproject.org/contact-us/"&gt;here&lt;/a&gt;&amp;nbsp;since it appears to be more Zephyr then NRF related.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>