Skip to content

Commit

Permalink
Add vision tests to xtask
Browse files Browse the repository at this point in the history
  • Loading branch information
wingertge committed Feb 3, 2025
1 parent ee5ad73 commit e6126c8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions xtask/src/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ pub(crate) fn handle_command(
"std with features: test-tch,record-item-custom-serde",
)?;

// burn-vision
helpers::custom_crates_tests(
vec!["burn-vision"],
vec!["--features", "cpu"],
None,
None,
"std cpu",
)?;

if std::env::var("DISABLE_WGPU").is_err() {
helpers::custom_crates_tests(
vec!["burn-core"],
Expand All @@ -75,6 +84,13 @@ pub(crate) fn handle_command(
None,
"std wgpu",
)?;
helpers::custom_crates_tests(
vec!["burn-vision"],
vec!["--features", "wgpu"],
None,
None,
"std wgpu",
)?;
// Vulkan isn't available on MacOS
#[cfg(not(target_os = "macos"))]
if std::env::var("DISABLE_WGPU_SPIRV").is_err() {
Expand All @@ -85,6 +101,13 @@ pub(crate) fn handle_command(
None,
"std vulkan",
)?;
helpers::custom_crates_tests(
vec!["burn-vision"],
vec!["--features", "vulkan"],
None,
None,
"std vulkan",
)?;
}
}

Expand Down

0 comments on commit e6126c8

Please sign in to comment.