Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .sync/rust/Makefiles/Makefile-patina-dxe-core-qemu.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,23 @@ clear = true
run_task = [{ name = ["check-no-default-features-code", "check-no-default-features-tests"], parallel = true }]

[tasks.test]
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -p package_name -- --nocapture`."
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -p package_name -- --nocapture`. In CI, also runs a second pass with the `ci_features` feature enabled to ensure tests do not depend on it being enabled."
clear = true
dependencies = ["test-default", "test-ci-features"]

[tasks.test-default]
description = "Runs tests via cargo-nextest with default features."
private = true
command = "cargo"
args = ["nextest", "run", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-ci-features]
description = "Runs tests via cargo-nextest with the `ci_features` feature enabled. Only runs when the `CI` environment variable is set."
private = true
condition = { env_set = ["CI"] }
command = "cargo"
args = ["nextest", "run", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.coverage-collect]
description = "Run tests and collect coverage data without generating reports."
install_crate = false
Expand Down Expand Up @@ -207,8 +219,8 @@ command = "cargo"
args = ["llvm-cov", "report", "--html", "--output-dir", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/coverage"]

[tasks.coverage]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports)."
dependencies = ["coverage-collect", "coverage-lcov", "coverage-html"]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports). In CI, also runs a second pass with the `ci_features` feature enabled (outside of coverage collection) since only `cargo make coverage` is run in CI."
dependencies = ["coverage-collect", "coverage-lcov", "coverage-html", "test-ci-features"]
clear = true

[tasks.test-asan]
Expand Down
18 changes: 15 additions & 3 deletions .sync/rust/Makefiles/Makefile-patina-mtrr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,23 @@ command = "cargo"
args = ["llvm-cov", "clean", "--workspace"]

[tasks.test]
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -- --nocapture`"
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -- --nocapture`. In CI, also runs a second pass with the `ci_features` feature enabled to ensure tests do not depend on it being enabled."
clear = true
dependencies = ["test-default", "test-ci-features"]

[tasks.test-default]
description = "Runs tests via cargo-nextest with default features."
private = true
command = "cargo"
args = ["nextest", "run", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-ci-features]
description = "Runs tests via cargo-nextest with the `ci_features` feature enabled. Only runs when the `CI` environment variable is set."
private = true
condition = { env_set = ["CI"] }
command = "cargo"
args = ["nextest", "run", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-cov]
description = "Run tests and collect coverage data without generating reports."
install_crate = false
Expand Down Expand Up @@ -221,8 +233,8 @@ command = "cargo"
args = ["llvm-cov", "report", "--html", "--output-dir", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/coverage"]

[tasks.coverage]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports)."
dependencies = ["test-cov", "coverage-lcov", "coverage-html"]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports). In CI, also runs a second pass with the `ci_features` feature enabled (outside of coverage collection) since only `cargo make coverage` is run in CI."
dependencies = ["test-cov", "coverage-lcov", "coverage-html", "test-ci-features"]
clear = true

[tasks.test-asan]
Expand Down
18 changes: 15 additions & 3 deletions .sync/rust/Makefiles/Makefile-patina-paging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,23 @@ command = "cargo"
args = ["llvm-cov", "clean", "--workspace"]

[tasks.test]
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -- --nocapture`."
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -- --nocapture`. In CI, also runs a second pass with the `ci_features` feature enabled to ensure tests do not depend on it being enabled."
clear = true
dependencies = ["test-default", "test-ci-features"]

[tasks.test-default]
description = "Runs tests via cargo-nextest with default features."
private = true
command = "cargo"
args = ["nextest", "run", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-ci-features]
description = "Runs tests via cargo-nextest with the `ci_features` feature enabled. Only runs when the `CI` environment variable is set."
private = true
condition = { env_set = ["CI"] }
command = "cargo"
args = ["nextest", "run", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-cov]
description = "Run tests and collect coverage data without generating reports."
install_crate = false
Expand Down Expand Up @@ -213,8 +225,8 @@ command = "cargo"
args = ["llvm-cov", "report", "--html", "--output-dir", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/coverage"]

[tasks.coverage]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports)."
dependencies = ["test-cov", "coverage-lcov", "coverage-html"]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports). In CI, also runs a second pass with the `ci_features` feature enabled (outside of coverage collection) since only `cargo make coverage` is run in CI."
dependencies = ["test-cov", "coverage-lcov", "coverage-html", "test-ci-features"]
clear = true

[tasks.test-asan]
Expand Down
18 changes: 15 additions & 3 deletions .sync/rust/Makefiles/Makefile-patina-readiness-tool.toml
Original file line number Diff line number Diff line change
Expand Up @@ -243,16 +243,28 @@ command = "cargo"
args = ["llvm-cov", "report", "--html", "--output-dir", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/coverage"]

[tasks.coverage]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports)."
dependencies = ["coverage-test", "coverage-lcov", "coverage-html"]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports). In CI, also runs a second pass with the `ci_features` feature enabled (outside of coverage collection) since only `cargo make coverage` is run in CI."
dependencies = ["coverage-test", "coverage-lcov", "coverage-html", "test-ci-features"]
clear = true

[tasks.test]
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -p dxe_readiness_validator -- --nocapture`."
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -p dxe_readiness_validator -- --nocapture`. In CI, also runs a second pass with the `ci_features` feature enabled to ensure tests do not depend on it being enabled."
clear = true
dependencies = ["test-default", "test-ci-features"]

[tasks.test-default]
description = "Runs tests via cargo-nextest with default features."
private = true
command = "cargo"
args = ["nextest", "run", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-ci-features]
description = "Runs tests via cargo-nextest with the `ci_features` feature enabled. Only runs when the `CI` environment variable is set."
private = true
condition = { env_set = ["CI"] }
command = "cargo"
args = ["nextest", "run", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-asan]
description = "Run tests with AddressSanitizer enabled. Example `cargo make test-asan`. Use `cargo make test-asan --print-dll-path` to print the ASan runtime DLL directory."
clear = true
Expand Down
18 changes: 15 additions & 3 deletions .sync/rust/Makefiles/Makefile-patina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,23 @@ command = "cargo"
args = ["llvm-cov", "clean", "--workspace"]

[tasks.test]
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -p package_name -- --nocapture`."
description = "Runs tests via cargo-nextest. Example `cargo make test` or `cargo make test -p package_name -- --nocapture`. In CI, also runs a second pass with the `ci_features` feature enabled to ensure tests do not depend on it being enabled."
clear = true
dependencies = ["test-default", "test-ci-features"]

[tasks.test-default]
description = "Runs tests via cargo-nextest with default features."
private = true
command = "cargo"
args = ["nextest", "run", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-ci-features]
description = "Runs tests via cargo-nextest with the `ci_features` feature enabled. Only runs when the `CI` environment variable is set."
private = true
condition = { env_set = ["CI"] }
command = "cargo"
args = ["nextest", "run", "--features", "ci_features", "@@split(CARGO_MAKE_TASK_ARGS,;)"]

[tasks.test-ignored]
description = "Runs ignored tests with native cargo test behavior. Example `cargo make test-ignored` or `cargo make test-ignored -p package_name"
clear = true
Expand Down Expand Up @@ -381,8 +393,8 @@ command = "cargo"
args = ["llvm-cov", "report", "--html", "--output-dir", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/coverage"]

[tasks.coverage]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports)."
dependencies = ["test-cov", "test-cov-fallback", "coverage-lcov", "coverage-html"]
description = "Build and run all tests and calculate coverage (runs test once and generates LCOV and HTML reports). In CI, also runs a second pass with the `ci_features` feature enabled (outside of coverage collection) since only `cargo make coverage` is run in CI."
dependencies = ["test-cov", "test-cov-fallback", "coverage-lcov", "coverage-html", "test-ci-features"]
clear = true

[tasks.build-aarch64]
Expand Down
Loading