Repository navigation
PKCS #11 relay: one script to run the tests on macOS and Linux - #59
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tools/pkcs11-relay/run-token-tests.shdoes on macOS and Linux whatrun-token-tests.ps1does 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 (including the reconnect tests) and removes the container.Builds on #57, which this is based on; merge that first.
osx-arm64,osx-x64,linux-x64orlinux-arm64from the machine. The first argument is the test filter; anything after it goes todotnet test.PORT,FAULT_PORTandSERVER_LOGare optional settings.Checked
dotnet testargument andSERVER_LOGpassed the 5 reconnect tests and kept the log. No container was left behind either time. The wait for the server added afterwards has run on Linux in CI only.🤖 Generated with Claude Code
https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As