1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 19:51:06 +01:00

run io-uring tests on circle ci

This commit is contained in:
Rob Ede 2021-11-15 00:02:27 +00:00
parent ed987eef06
commit 6e2db3dc25
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 26 additions and 4 deletions

22
.circleci/config.yml Normal file
View File

@ -0,0 +1,22 @@
version: 2.1
jobs:
test-io-uring-features:
machine:
image: ubuntu-2004:202107-02
resource_class: large
environment:
CI: '1'
CARGO_INCREMENTAL: '0'
RUST_BACKTRACE: '1'
steps:
- checkout
- run: uname -a
- run: apt-get update; apt-get install -y liburing-dev
- run: cargo test -p=actix-rt --features=io-uring
- run: cargo test -p=actix-server --features=io-uring
workflows:
test:
jobs:
- test-io-uring-features

View File

@ -175,9 +175,9 @@ impl System {
} }
} }
#[cfg(not(feature = "io-uring"))]
/// Runner that keeps a [System]'s event loop alive until stop message is received. /// Runner that keeps a [System]'s event loop alive until stop message is received.
#[must_use = "A SystemRunner does nothing unless `run` is called."] #[cfg(not(feature = "io-uring"))]
#[must_use = "A SystemRunner does nothing unless `run` or `block_on` is called."]
#[derive(Debug)] #[derive(Debug)]
pub struct SystemRunner { pub struct SystemRunner {
rt: crate::runtime::Runtime, rt: crate::runtime::Runtime,
@ -216,9 +216,9 @@ impl SystemRunner {
} }
} }
#[cfg(feature = "io-uring")]
/// Runner that keeps a [System]'s event loop alive until stop message is received. /// Runner that keeps a [System]'s event loop alive until stop message is received.
#[must_use = "A SystemRunner does nothing unless `run` is called."] #[cfg(feature = "io-uring")]
#[must_use = "A SystemRunner does nothing unless `run` or `block_on` is called."]
#[derive(Debug)] #[derive(Debug)]
pub struct SystemRunner; pub struct SystemRunner;