Development version of BIND 9 - 9.21.10 with meson build system

Stacey Marshall stacey.marshall at gmail.com
Mon Aug 18 13:17:01 UTC 2025


On 4 Aug 2025, at 17:31, Stacey Marshall wrote:

> The 9.21 test framework has an additional requirement on CMocka, from 
> README.md
>
>> Unit tests are implemented using the CMocka unit testing framework. 
>> To build
>> them, use the option `-Dcmocka=enabled`. Execution of unit tests is 
>> done by the
>> meson's test functionality; run by `meson test`.
>
> 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
>

I went ahead and compiled and installed cmocka on a virtual build 
machine.
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.

For production does the cmocka option need to be disabled, 
`-Dcmocka=disabled`?
A cursory look suggests it is only used within the test code.
I note that README.md suggests the option needs to be enabled to run the 
tests, so want to clarify;
Perhaps it's this way for the development version (odd number).

I shall go look over the cmocka docs as well.

Thanks

Stace



Mr. Stacey Marshall - Principal Software Engineer
Oracle Global Services Limited
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20250818/e741d1c1/attachment.htm>


More information about the bind-users mailing list