Skip to content

Add local-only on-target mco_TLS smoke test for mqtt.library - #16

Merged
sidick merged 1 commit into
mainfrom
tls-library-smoke-test
Aug 30, 2026
Merged

Add local-only on-target mco_TLS smoke test for mqtt.library#16
sidick merged 1 commit into
mainfrom
tls-library-smoke-test

Conversation

@sidick

@sidick sidick commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds tests/library/libtls.c + tests/library/tls-run.sh: an on-target Copperline test exercising mqtt.library's real TLS API (mco_TLS/mco_TLSInsecure) against a real TLS Mosquitto broker, mirroring library-net-smoke's shape/PASS-FAIL-RESULT-END contract.
  • Unlike the other library-*-smoke targets, this one is local-only, not wired into CI: AmiSSL needs a real AmigaOS Devs:/Libs: install (its own AmiSSL: assign) and a real Kickstart ROM, neither of which the bundled-AROS/HostSocket boot the other tests use provides, or which CI can be handed.
  • tests/library/README.md documents building the required boot image with amibake and running the test.
  • New make libtls-m68k / make library-tls-smoke Makefile targets, referenced in the top-of-file help comment.

Part of issue #3 (Phase 3: TLS support via AmiSSL) - the remaining on-target verification piece mentioned in the last progress comment there.

Test plan

  • Built build/libtls, build/mqtt.library (with make fetch-amissl-sdk support), and build/mqtt_pub-host via the m68k Docker toolchain and host cc.
  • Ran sh tests/library/tls-run.sh against a real amibake-built AmigaOS 3.2.2 + AmiSSL 5.27 image and a scratch TLS Mosquitto broker locally: full green run - all 8 on-target checks passed (openlibrary-nonnull through publish-qos1-ok), plus the host TLS observer received the published message.
  • Confirmed the script is not referenced from ci.yml (local-only, as documented).

🤖 Generated with Claude Code

https://claude.ai/code/session_01QWq1CRLCQy9AaD9UtLRSM9

tests/library/libtls.c + tls-run.sh exercise mqtt.library's real TLS API
(OpenLibrary/CreateClient with mco_TLS+mco_TLSInsecure/Connect/Subscribe/
GetMessage/Publish/Disconnect/DeleteClient) against a real TLS Mosquitto
under Copperline, mirroring library-net-smoke's shape. Unlike the other
library-*-smoke targets this one is local-only, not a CI/release gate:
AmiSSL needs a real AmigaOS Devs:/Libs: install (its own AmiSSL: assign)
and a real Kickstart ROM, neither of which the bundled-AROS/HostSocket
boot the other tests use has, or which CI can be handed. tests/library/
README.md documents building the required image with amibake and running
the test locally.

Verified: full green run (all 8 checks + the host TLS observer receiving
the publish) against a real TLS Mosquitto broker.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QWq1CRLCQy9AaD9UtLRSM9
@sidick
sidick merged commit 1ad609e into main Aug 30, 2026
11 checks passed
@sidick
sidick deleted the tls-library-smoke-test branch August 30, 2026 10:21
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.

1 participant