mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
In preparation of work on `CancellationToken` internals, the tests are moved into `tests/` and are updated to not depend on internals.
30 lines
748 B
YAML
30 lines
748 B
YAML
jobs:
|
|
- job: ${{ parameters.name }}
|
|
displayName: Loom tests
|
|
strategy:
|
|
matrix:
|
|
rest:
|
|
scope: --skip loom_pool
|
|
pool_group_a:
|
|
scope: loom_pool::group_a
|
|
pool_group_b:
|
|
scope: loom_pool::group_b
|
|
pool_group_c:
|
|
scope: loom_pool::group_c
|
|
pool_group_d:
|
|
scope: loom_pool::group_d
|
|
pool:
|
|
vmImage: ubuntu-16.04
|
|
|
|
steps:
|
|
- template: azure-install-rust.yml
|
|
parameters:
|
|
rust_version: ${{ parameters.rust }}
|
|
|
|
- script: RUSTFLAGS="--cfg loom --cfg tokio_unstable" cargo test --lib --release --features "full" -- --nocapture $(scope)
|
|
env:
|
|
LOOM_MAX_PREEMPTIONS: 2
|
|
CI: 'True'
|
|
displayName: $(scope)
|
|
workingDirectory: $(Build.SourcesDirectory)/tokio
|