Skip to content

PKCS #11 relay: one script to run the tests on macOS and Linux - #60

Merged
JoeShook merged 2 commits into
mainfrom
pkcs11-relay-shell-script
Nov 16, 2026
Merged

JoeShook merged 2 commits into
mainfrom
pkcs11-relay-shell-script

Conversation

@JoeShook

Copy link
Copy Markdown
Owner

The same change as #59, which was merged into the pkcs11-reconnect branch after that branch had already gone into main, so it never reached main. Nothing here is new.

tools/pkcs11-relay/run-token-tests.sh does on macOS and Linux what run-token-tests.ps1 does on Windows: it builds the relay client library for the machine it runs on, starts the relay server with SoftHSM in a container, runs the PKCS #11 tests through it and removes the container. CI's relay job runs the same script.

Checked

  • Linux: the relay job in CI.
  • macOS (Apple Silicon): 23 of 23 passed at the first commit; the wait for the server added afterwards has run on Linux only.

🤖 Generated with Claude Code

https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As

JoeShook and others added 2 commits November 16, 2026 13:37
…cript

run-token-tests.sh does what run-token-tests.ps1 does on Windows: it builds
the relay client library for the machine it runs on, starts the relay server
with SoftHSM in a container, runs the PKCS #11 tests through it and removes
the container. CI's relay job now runs the same script, so the Linux path
developers use is the one that is checked on every change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As
Docker accepts connections on a published port before the server in the
container is listening, so on a machine where the tests are already built
the first call could arrive too early. The script now waits for the
server's start-up line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As
@JoeShook
JoeShook merged commit d31ff34 into main Nov 16, 2026
13 checks passed
@JoeShook
JoeShook deleted the pkcs11-relay-shell-script branch November 20, 2026 20:28
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