mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-01 20:07:39 +03:00
Run neon tests forst
This commit is contained in:
parent
5426790eb0
commit
11734e8f1b
4 changed files with 26 additions and 29 deletions
12
.github/workflows/cov.yml
vendored
12
.github/workflows/cov.yml
vendored
|
@ -26,18 +26,18 @@ jobs:
|
|||
- name: Clean coverage results
|
||||
run: cargo llvm-cov clean --workspace
|
||||
|
||||
- name: Code coverage (tokio)
|
||||
run: cargo llvm-cov --no-report --all --no-default-features --features="ntex/tokio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Code coverage (compio)
|
||||
run: cargo llvm-cov --no-report --all --no-default-features --features="ntex/compio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Code coverage (neon)
|
||||
run: cargo llvm-cov --no-report --all --no-default-features --features="ntex/neon,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Code coverage (neon-uring)
|
||||
run: cargo llvm-cov --no-report --all --no-default-features --features="ntex/neon-uring,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Code coverage (tokio)
|
||||
run: cargo llvm-cov --no-report --all --no-default-features --features="ntex/tokio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Code coverage (compio)
|
||||
run: cargo llvm-cov --no-report --all --no-default-features --features="ntex/compio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Generate coverage report
|
||||
run: cargo llvm-cov report --lcov --output-path lcov.info --ignore-filename-regex="ntex-compio|ntex-tokio"
|
||||
|
||||
|
|
20
.github/workflows/linux.yml
vendored
20
.github/workflows/linux.yml
vendored
|
@ -44,16 +44,6 @@ jobs:
|
|||
path: ~/.cargo/git
|
||||
key: ${{ matrix.version }}-x86_64-unknown-linux-gnu-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Run tests (tokio)
|
||||
timeout-minutes: 40
|
||||
run: |
|
||||
cargo test --all --no-fail-fast --no-default-features --features="ntex/tokio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Run tests (compio)
|
||||
timeout-minutes: 40
|
||||
run: |
|
||||
cargo test --all --no-default-features --features="ntex/compio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Run tests (neon)
|
||||
timeout-minutes: 40
|
||||
run: |
|
||||
|
@ -64,6 +54,16 @@ jobs:
|
|||
run: |
|
||||
cargo test --all --no-default-features --features="ntex/neon-uring,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Run tests (tokio)
|
||||
timeout-minutes: 40
|
||||
run: |
|
||||
cargo test --all --no-fail-fast --no-default-features --features="ntex/tokio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Run tests (compio)
|
||||
timeout-minutes: 40
|
||||
run: |
|
||||
cargo test --all --no-default-features --features="ntex/compio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Install cargo-cache
|
||||
continue-on-error: true
|
||||
run: |
|
||||
|
|
8
.github/workflows/osx.yml
vendored
8
.github/workflows/osx.yml
vendored
|
@ -37,6 +37,10 @@ jobs:
|
|||
path: ~/.cargo/git
|
||||
key: ${{ matrix.version }}-aarch64-apple-darwin-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Run tests (neon)
|
||||
timeout-minutes: 40
|
||||
run: cargo test --all --no-default-features --no-fail-fast --features="ntex/neon,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Run tests (tokio)
|
||||
run: cargo test --all --no-default-features --no-fail-fast --features="ntex/tokio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
|
@ -44,10 +48,6 @@ jobs:
|
|||
timeout-minutes: 40
|
||||
run: cargo test --all --no-default-features --no-fail-fast --features="ntex/compio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Run tests (neon)
|
||||
timeout-minutes: 40
|
||||
run: cargo test --all --no-default-features --no-fail-fast --features="ntex/neon,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws"
|
||||
|
||||
- name: Install cargo-cache
|
||||
continue-on-error: true
|
||||
run: cargo install cargo-cache --no-default-features --features ci-autoclean
|
||||
|
|
|
@ -132,11 +132,10 @@ impl<T> Handler for StreamOpsHandler<T> {
|
|||
.inspect(|size| {
|
||||
unsafe { buf.advance_mut(*size) };
|
||||
log::debug!(
|
||||
"{}: {:?}, SIZE: {:?}, BUF: {:?}",
|
||||
"{}: {:?}, SIZE: {:?}",
|
||||
item.context.tag(),
|
||||
item.fd,
|
||||
size,
|
||||
buf,
|
||||
size
|
||||
);
|
||||
}),
|
||||
)
|
||||
|
@ -150,11 +149,10 @@ impl<T> Handler for StreamOpsHandler<T> {
|
|||
let item = &mut streams[id];
|
||||
let result = item.context.with_write_buf(|buf| {
|
||||
log::debug!(
|
||||
"{}: writing {:?} SIZE: {:?}, BUF: {:?}",
|
||||
"{}: writing {:?} SIZE: {:?}",
|
||||
item.context.tag(),
|
||||
item.fd,
|
||||
buf.len(),
|
||||
buf,
|
||||
buf.len()
|
||||
);
|
||||
let slice = &buf[..];
|
||||
syscall!(
|
||||
|
@ -286,11 +284,10 @@ impl<T> StreamCtl<T> {
|
|||
.inspect(|size| {
|
||||
unsafe { buf.advance_mut(*size) };
|
||||
log::debug!(
|
||||
"{}: {:?}, SIZE: {:?}, BUF: {:?}",
|
||||
"{}: {:?}, SIZE: {:?}",
|
||||
item.context.tag(),
|
||||
item.fd,
|
||||
size,
|
||||
buf,
|
||||
size
|
||||
);
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue