Re: Development version of BIND 9 - 9.21.10 with meson build system

Stacey Marshall <[email protected]>
Newsgroups gmane.network.dns.bind9.user
Message-ID <B5E68126-71BE-42A1-9CA2-E2C7B4E53CED__34803.515677207$1755523053$gmane$org@gmail.com>
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

-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.