Skip to content

#27: Add fake lltdPort for tests#34

Merged
d3vi1 merged 3 commits intomasterfrom
issue-27-fake-lltdPort-tests
Jan 15, 2026
Merged

#27: Add fake lltdPort for tests#34
d3vi1 merged 3 commits intomasterfrom
issue-27-fake-lltdPort-tests

Conversation

@d3vi1
Copy link
Owner

@d3vi1 d3vi1 commented Jan 15, 2026

Closes #27 (sub-issue of #12).

  • Added tests/lltd_test_port.c implementing all lltd_port_* symbols with deterministic outputs + TX capture helpers.
  • Simplified tests/lltdTestShim.h to a small lltd_test_iface_t (no OS headers).
  • Updated test sources to use lltdEndian.h helpers instead of arpa/inet.h.
  • Updated Makefile test targets to link the fake port; made integration-helper/integration-test Linux-only.

Note: make test-unit still requires cmocka via pkg-config (unchanged prerequisite).

@d3vi1
Copy link
Owner Author

d3vi1 commented Jan 15, 2026

Added Xcode-native tests (variant 2): new lltdResponderTests XCTest bundle target in lltdResponder.xcodeproj with tests in tests/xcode/LLTDResponderXCTests.m (+ tests/xcode/Info.plist).

Run locally:

  • xcodebuild -project lltdResponder.xcodeproj -scheme lltdResponderTests test

@d3vi1 d3vi1 merged commit 6886cbd into master Jan 15, 2026
5 checks passed
@d3vi1 d3vi1 deleted the issue-27-fake-lltdPort-tests branch January 15, 2026 19:30
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.

Core/OS split: add fake lltdPort for tests

1 participant