Skip to content

Split unit test sources into multiple modules#82

Merged
gasbytes merged 2 commits intowolfSSL:masterfrom
danielinux:split-unit-tests
Mar 17, 2026
Merged

Split unit test sources into multiple modules#82
gasbytes merged 2 commits intowolfSSL:masterfrom
danielinux:split-unit-tests

Conversation

@danielinux
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 07:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands and organizes the unit test suite by adding dedicated test translation-unit includes for FIFO/queue behavior and public API/socket/filter behavior, plus a shared unit-test support module, and updates the Makefile to rebuild unit binaries when test sources change and to exclude unit tests from coverage reports.

Changes:

  • Added new unit test files for FIFO/queue (unit_tests_fifo.c) and API behavior (unit_tests_api.c).
  • Added unit_shared.c to centralize unit-test mocks/helpers and test stack setup.
  • Updated Makefile unit/coverage rules to track unit test source dependencies and exclude unit test sources from gcovr output.

Reviewed changes

Copilot reviewed 3 out of 9 changed files in this pull request and generated 2 comments.

File Description
src/test/unit/unit_tests_fifo.c Adds additional FIFO/queue edge-case unit tests (wrap/align/full/iteration).
src/test/unit/unit_tests_api.c Adds extensive unit tests for poll, filter, sockets, DNS helpers, and TCP handshake/RTO behaviors.
src/test/unit/unit_shared.c Introduces shared mocks/helpers and test packet injection utilities used across unit tests.
Makefile Attempts to make unit rebuild sensitive to included test sources and adjusts coverage exclude patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@gasbytes gasbytes merged commit 5dbd9ca into wolfSSL:master Mar 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants