<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">On 4 Aug 2025, at 17:31, Stacey Marshall wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">The 9.21 test framework has an additional requirement on CMocka, from README.md</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">Unit tests are implemented using the CMocka unit testing framework. To build<br>
them, use the option <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">-Dcmocka=enabled</code>. Execution of unit tests is done by the<br>
meson's test functionality; run by <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">meson test</code>.</p>
</blockquote>
<p dir="auto">I've not looked at CMocka requirements as yet.  So currently I've not been able to run the full testing as I have been doing with 9.18 work, and more recently with 9.20</p>
</blockquote>
<p dir="auto">I went ahead and compiled and installed cmocka on a virtual build machine.<br>
When BIND 9.21 is compiled cmocka is detected and enabled (meson_options.txt has cmocka as feature as "auto").  All the provided tests execute and pass; some fail intermittently due to timeouts, but then I am running within a VM so I believe the issues are simply timing related - will test further.</p>
<p dir="auto">For production does the cmocka option need to be disabled, <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">-Dcmocka=disabled</code>?<br>
A cursory look suggests it is only used within the test code.<br>
I note that README.md suggests the option needs to be enabled to run the tests, so want to clarify;<br>
Perhaps it's this way for the development version (odd number).</p>
<p dir="auto">I shall go look over the cmocka docs as well.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Stace</p>
<p dir="auto">Mr. Stacey Marshall - Principal Software Engineer<br>
Oracle Global Services Limited</p>

</div>
</div>
</body>

</html>