-
Notifications
You must be signed in to change notification settings - Fork 38
Rewrite tests to python for windows runtime testing #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
julek-wolfssl
wants to merge
28
commits into
wolfSSL:main
Choose a base branch
from
julek-wolfssl:windows-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
35da79b
windows setup
julek-wolfssl 7abd4d2
Add SM3 hash type in wolfCLU_CertSign function
julek-wolfssl e9f6809
Rewrite tests into python scripts for easier portability
julek-wolfssl 4dd4edb
Run tests in windows CI
julek-wolfssl 1ef9d65
Undef CRL_REASON_* because it clashes with other definitions
julek-wolfssl 6268cc7
Fix test failures
julek-wolfssl 27314b5
Consolidate CI workflows and update action versions
julek-wolfssl 140700c
Clean up Windows CI workflow and VS project files
julek-wolfssl b877955
Use vswhere to detect PlatformToolset
julek-wolfssl f595923
Fix test failures
julek-wolfssl 3e7f9f1
Address code review
julek-wolfssl 82bec7a
Address PR review comments
julek-wolfssl 0f42d47
Exit 77 for skipped Python tests so automake reports SKIP
julek-wolfssl aa9b22a
Fix Camellia key size in encrypt/decrypt
julek-wolfssl fb149fc
Address second round of review comments
julek-wolfssl 65450a5
Defer SNI insertion and validate decrypt input size
julek-wolfssl c4b0b6b
Fix client test to check for certificate instead of exit code
julek-wolfssl 51a5ab7
Enable x509 ca and req tests on Windows
julek-wolfssl 0ec1fc2
Enable AES-CTR, Camellia, and IPv6 SAN tests on Windows
julek-wolfssl 8e8950f
Enable dilithium, SHA-3, and SHAKE for Windows builds
julek-wolfssl 8683924
Recognize Windows drive-letter paths as absolute, enable more tests
julek-wolfssl f872b49
Exclude abstract OCSP base class from test discovery
julek-wolfssl 5d464d4
Fix ECC genkey default curve and sign test data size
julek-wolfssl 0684e86
Update minimum required Python version to 3.6
julek-wolfssl 5a83f39
Address code review comments
julek-wolfssl d88b319
Address third round of review comments
julek-wolfssl dd01ace
Port stack buffer overflow regression tests to python
julek-wolfssl 32079c4
Guard Windows absolute-path check with explicit length check
julek-wolfssl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Ensure cert/key files always use LF line endings so that hashes | ||
| # remain consistent across platforms. | ||
| *.pem eol=lf | ||
| *.cnf eol=lf | ||
| *.cfg eol=lf | ||
|
|
||
| # DER files are binary and must never be transformed. | ||
| *.der binary |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: ['*'] | ||
| pull_request: | ||
| branches: ['*'] | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest] | ||
| config: | ||
| - '--enable-wolfclu' | ||
| - '--enable-wolfclu --enable-crl --enable-dsa --enable-pkcs7' | ||
| - '--enable-wolfclu --enable-smallstack' | ||
| - '--enable-wolfclu --enable-experimental --enable-dilithium' | ||
| - '--enable-wolfclu --enable-smallstack --enable-experimental --enable-dilithium' | ||
| - '--enable-all' | ||
| sanitize: ['', 'CC="cc -fsanitize=address"'] | ||
|
|
||
| name: ${{ matrix.os }} ${{ matrix.sanitize && 'ASAN' || '' }} (${{ matrix.config }}) | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 10 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| path: wolfclu | ||
|
|
||
| - uses: actions/checkout@v4 | ||
| with: | ||
| repository: wolfssl/wolfssl | ||
| ref: master | ||
| path: wolfssl | ||
|
|
||
| - name: Install dependencies (Ubuntu) | ||
| if: runner.os == 'Linux' | ||
| run: | | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| sudo apt-get update | ||
| sudo apt-get install -y openssl | ||
|
|
||
| - name: Install dependencies (macOS) | ||
| if: runner.os == 'macOS' | ||
| run: brew install automake libtool | ||
|
|
||
| - name: Build and install wolfSSL | ||
| working-directory: ./wolfssl | ||
| run: | | ||
| ./autogen.sh | ||
| ./configure ${{ matrix.config }} ${{ matrix.sanitize }} --prefix=$GITHUB_WORKSPACE/build-dir | ||
| make -j | ||
| make install | ||
|
|
||
| - name: Build wolfCLU | ||
| working-directory: ./wolfclu | ||
| run: | | ||
| ./autogen.sh | ||
| ./configure ${{ matrix.sanitize }} --with-wolfssl=$GITHUB_WORKSPACE/build-dir | ||
| make -j | ||
|
|
||
| - name: Run tests | ||
| working-directory: ./wolfclu | ||
| env: | ||
| LD_LIBRARY_PATH: ${{ github.workspace }}/build-dir/lib | ||
| DYLD_LIBRARY_PATH: ${{ github.workspace }}/build-dir/lib | ||
| run: make check | ||
|
|
||
| - name: Display log | ||
| if: always() | ||
| working-directory: ./wolfclu | ||
| run: cat test-suite.log || true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,3 +40,8 @@ src/stamp-h1 | |
| .project | ||
| .settings/ | ||
| AGENTS.md | ||
| Win32/ | ||
| x64/ | ||
| .vs/ | ||
| __pycache__/ | ||
| CLAUDE.md | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.