Il giorno mer 4 nov 2026 alle ore 16:39 Gianluca Cannata
<[email protected]> ha scritto:
>
> Hello everyone,
>
> I am currently working on establishing a robust unit testing suite for
> the httpfs translator using cmocka and Autotools.
>
> The goal is to isolate the core internal logic (such as DNS resolution
> via lookup_host, network connection setup, and HTML parsing) to ensure
> reliability and facilitate refactoring.
>
> While the build system integration (Autotools, pkg-config) and the
> test runner skeleton are fully operational, I have hit a hurdle
> regarding the cmocka mocking mechanism for gethostbyname/lookup_host
> interactions where test queues encounter synchronization issues (count
> != 0)
>
> I am sharing this initial patch set to gather feedback from
> maintainers on the best practices for mocking network/Hurd system
> calls within our test environment, or if there's a cleaner way to
> handle interposition via linker wrapping in this specific context.
>
> Any insights or suggestions would be greatly appreciated!
>
> Best regards,
>
> Gianluca

Hello,

with the patch in the other thread I have introduced a unit testing
suite with cmocka inside the httpfs translator.

The main objective is to drive the development with a TDD approach,
thus testing first, then refactor if anything breaks.

Let me know what you think.

Sincerely,

Gianluca

Reply via email to