-
Notifications
You must be signed in to change notification settings - Fork 5
Code for QUIC support #24
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
base: main
Are you sure you want to change the base?
Changes from all commits
a47e30a
617cf00
1825584
9b41b7f
f02a8b6
b2f1c44
d774e27
7cd2390
ab8008e
0083cba
3a474d2
fcc37ea
0fecc29
e7cce19
0e6b22d
20bda5c
1220bbf
b54ebd8
90f7342
972c19b
42bd60f
1051f77
11d4009
a769d4d
6d63f32
6518c58
e6f1e77
67a8540
203387d
8c84d41
1d1dcf0
9e94096
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: macOS rustls tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ 'main' ] | ||
| pull_request: | ||
| branches: [ 'main' ] | ||
|
|
||
| jobs: | ||
| macos-build: | ||
| name: Build and Test (macOS) | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Build Prerequisites | ||
| run: | | ||
| brew install autoconf libtool automake | ||
| brew install go | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: stable | ||
| components: rustfmt, clippy | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: macos-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| macos-cargo- | ||
|
|
||
| - name: Checkout rustls v0.23.35 | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: rustls/rustls | ||
| ref: v/0.23.35 | ||
| fetch-depth: 0 | ||
| path: rustlsv0.23.35-test-workspace/rustls | ||
|
|
||
| - name: Checkout rustls-wolfcrypt-provider (quic-support) | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: helkoulak/rustls-wolfcrypt-provider | ||
| ref: quic-support | ||
| path: rustlsv0.23.35-test-workspace/rustls-wolfcrypt-provider | ||
|
|
||
| - name: Build wolfcrypt-rs | ||
| working-directory: rustlsv0.23.35-test-workspace/rustls-wolfcrypt-provider/wolfcrypt-rs | ||
| run: make build | ||
|
|
||
| - name: Build rustls-wolfcrypt-provider | ||
| working-directory: rustlsv0.23.35-test-workspace/rustls-wolfcrypt-provider/rustls-wolfcrypt-provider | ||
| run: cargo build --all-features --release | ||
|
|
||
| - name: Checkout rustls v0.23.35 test files | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: helkoulak/rustls_v0.23.35_test_files | ||
| path: rustlsv0.23.35-test-workspace/rustls_v0.23.35_test_files | ||
|
|
||
| - name: Prepare test workspace | ||
| working-directory: rustlsv0.23.35-test-workspace | ||
| run: | | ||
| cp -r rustls_v0.23.35_test_files/tests . | ||
| cp rustls_v0.23.35_test_files/Cargo.toml . | ||
| cp rustls_v0.23.35_test_files/provider_files/Cargo.toml \ | ||
| rustls-wolfcrypt-provider/rustls-wolfcrypt-provider/ | ||
|
|
||
| - name: Run test suite | ||
| working-directory: rustlsv0.23.35-test-workspace | ||
| run: | | ||
| cargo test -p tests --test all_suites \ | ||
| --features wolfcrypt-provider,tls12,fips,zlib,prefer-post-quantum,logging \ | ||
| --no-default-features | ||
|
|
||
|
|
gasbytes marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me and Juliusz were also thinking that it might be worth to add a feature to print the current provider being used via cargo, since you added the configuration option
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand correctly, this is already done. The command that runs the tests targets only the runner file all_test_suites.rs. And in this runner file you have macros that are annotated with #[cfg(feature = "wolfcrypt-provider")] and print the sentence tests_with_wolfcrypt_. So as per my understanding, there is no way the tests will run against other providers than wolfcrypt-provider. Or did I miss something here? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: Ubuntu rustls tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ 'main' ] | ||
| pull_request: | ||
| branches: [ 'main' ] | ||
|
|
||
| jobs: | ||
| ubuntu-build: | ||
| name: Build and Test (Ubuntu) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Build Prerequisites | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential autoconf libtool | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: stable | ||
| components: rustfmt, clippy | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ubuntu-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ubuntu-cargo- | ||
|
|
||
|
|
||
| - name: Checkout rustls v0.23.35 | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: rustls/rustls | ||
| ref: v/0.23.35 | ||
| fetch-depth: 0 | ||
| path: rustlsv0.23.35-test-workspace/rustls | ||
|
|
||
| - name: Checkout rustls-wolfcrypt-provider (quic-support) | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: helkoulak/rustls-wolfcrypt-provider | ||
| ref: quic-support | ||
| path: rustlsv0.23.35-test-workspace/rustls-wolfcrypt-provider | ||
|
|
||
| - name: Build wolfcrypt-rs | ||
| working-directory: rustlsv0.23.35-test-workspace/rustls-wolfcrypt-provider/wolfcrypt-rs | ||
| run: make build | ||
|
|
||
| - name: Build rustls-wolfcrypt-provider | ||
| working-directory: rustlsv0.23.35-test-workspace/rustls-wolfcrypt-provider/rustls-wolfcrypt-provider | ||
| run: cargo build --all-features --release | ||
|
|
||
| - name: Checkout rustls v0.23.35 test files | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: helkoulak/rustls_v0.23.35_test_files | ||
| path: rustlsv0.23.35-test-workspace/rustls_v0.23.35_test_files | ||
|
|
||
| - name: Prepare test workspace | ||
| working-directory: rustlsv0.23.35-test-workspace | ||
| run: | | ||
| cp -r rustls_v0.23.35_test_files/tests . | ||
| cp rustls_v0.23.35_test_files/Cargo.toml . | ||
| cp rustls_v0.23.35_test_files/provider_files/Cargo.toml \ | ||
| rustls-wolfcrypt-provider/rustls-wolfcrypt-provider/ | ||
|
|
||
| - name: Run test suite | ||
| working-directory: rustlsv0.23.35-test-workspace | ||
| run: | | ||
| cargo test -p tests --test all_suites \ | ||
| --features wolfcrypt-provider,tls12,fips,zlib,prefer-post-quantum,logging \ | ||
| --no-default-features | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comments apply to
macos-build.yml.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would consider moving the
rustlstests into a separate workflow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done