-
Notifications
You must be signed in to change notification settings - Fork 39
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fc3ed2d
windows setup
julek-wolfssl 53984d1
Rewrite tests into python scripts for easier portability
julek-wolfssl 2430b87
Run tests in windows CI
julek-wolfssl f0d0bd5
Undef CRL_REASON_* because it clashes with other definitions
julek-wolfssl e57c65d
Fix test failures
julek-wolfssl 39df6bc
Consolidate CI workflows and update action versions
julek-wolfssl b677c08
Clean up Windows CI workflow and VS project files
julek-wolfssl 84c05b5
Use vswhere to detect PlatformToolset
julek-wolfssl 94bfe32
Fix test failures
julek-wolfssl 8a1fa88
Address code review
julek-wolfssl 662ebee
Address PR review comments
julek-wolfssl 2b34469
Exit 77 for skipped Python tests so automake reports SKIP
julek-wolfssl 6c05619
Fix Camellia key size in encrypt/decrypt
julek-wolfssl 6aad8ec
Address second round of review comments
julek-wolfssl 7662310
Defer SNI insertion and validate decrypt input size
julek-wolfssl bdc4fbd
Fix client test to check for certificate instead of exit code
julek-wolfssl f0d1eb2
Enable x509 ca and req tests on Windows
julek-wolfssl 8596578
Enable AES-CTR, Camellia, and IPv6 SAN tests on Windows
julek-wolfssl a0951de
Enable dilithium, SHA-3, and SHAKE for Windows builds
julek-wolfssl c5a5ad6
Recognize Windows drive-letter paths as absolute, enable more tests
julek-wolfssl 00ff2e5
Exclude abstract OCSP base class from test discovery
julek-wolfssl bd57311
Fix ECC genkey default curve and sign test data size
julek-wolfssl f16c330
Update minimum required Python version to 3.6
julek-wolfssl 0e45db9
Address code review comments
julek-wolfssl 11458cf
Address third round of review comments
julek-wolfssl ce6fdb2
Port stack buffer overflow regression tests to python
julek-wolfssl d8255e2
Guard Windows absolute-path check with explicit length check
julek-wolfssl f0bcf44
Implement tests added in a3fe95
julek-wolfssl 840211a
Fix make distcheck for Python test suite
julek-wolfssl 8295068
Port tests from 25a6aa and accept -output case-insensitively
julek-wolfssl a943b30
Update src/x509/clu_x509_sign.c
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.