Add support for workspace tests

Added `--workspace` flag to `cargo test` commands
because it is needed for workspace crates (an example
would be the vmm-reference).
The coverage test is already run on all tests for
workspaces too.
Fixes: #38.

Signed-off-by: Laura Loghin <lauralg@amazon.com>
This commit is contained in:
Laura Loghin
2020-10-07 13:42:33 +03:00
committed by Alexandra Iordache
parent 9dd386c2e6
commit cd90a637a3

View File

@@ -67,7 +67,7 @@ steps:
- label: "unittests-gnu-x86"
commands:
- cargo test --all-features
- cargo test --all-features --workspace
retry:
automatic: false
agents:
@@ -81,7 +81,7 @@ steps:
- label: "unittests-gnu-arm"
commands:
- cargo test --all-features
- cargo test --all-features --workspace
retry:
automatic: false
agents:
@@ -95,7 +95,7 @@ steps:
- label: "unittests-musl-x86"
command:
- cargo test --all-features --target x86_64-unknown-linux-musl
- cargo test --all-features --workspace --target x86_64-unknown-linux-musl
retry:
automatic: false
agents:
@@ -109,7 +109,7 @@ steps:
- label: "unittests-musl-arm"
command:
- cargo test --all-features --target aarch64-unknown-linux-musl
- cargo test --all-features --workspace --target aarch64-unknown-linux-musl
retry:
automatic: false
agents: