Add testing infrastructure#37
Open
JeremiahM37 wants to merge 7 commits into
Open
Conversation
a82d158 to
3888aa6
Compare
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.
Adds a Go test suite and CI infrastructure for go-wolfssl
Tests — ~80 unit tests across crypto wrappers (AES, Blake2, ChaCha20-Poly1305, Curve25519, ECC, hashes, HMAC, RNG, X509, SSL boundary), plus differential and panic-recovery suites. All gate cleanly on
notCompiledIn(-174) for minimal builds.Source fixes (separate commits, each fixing a real bug):
Wc_Curve25519_AllocKey/Wc_Ecc_AllocKey— allocate keys on the C heap so wolfSSL's pointer-typed struct fields don't trip cgo's "Go pointer to unpinned Go pointer" check#ifndef HAVE_ALPN/WOLFSSL_CERT_EXTcgo stubs inssl.go/x509.goso non---enable-allconfigs linkwolfx509/wolftlsnow build and test cleanly across all matrix configs (sentinel error for cert generation, skip on missing ALPN)CI — build matrix now Go 1.21/1.22/1.23 × 3 wolfSSL configures (full, modern TLS 1.3 stack, DTLS 1.3); adds AddressSanitizer + linters (vet + staticcheck) workflows. Build/test now covers the
handles,wolftls, andwolfx509subpackages.