Skip to content

Commit

Permalink
crates/opencl: Add tests behind a feature since CI doesn't have openc…
Browse files Browse the repository at this point in the history
…l installed
  • Loading branch information
etemesi254 committed Nov 4, 2023
1 parent 09ae486 commit b011bdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/zune-opencl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
tests=[""]
[dependencies]
ocl = "0.19.4"
zune-image = { path = "../zune-image" }
Expand Down
1 change: 1 addition & 0 deletions crates/zune-opencl/src/ocl_sobel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ impl zune_image::traits::OperationsTrait for OclSobel {
}

#[test]
#[cfg(feature = "tests")]
fn test_ocr_sobel() {
use zune_core::colorspace::ColorSpace;
use zune_image::traits::OperationsTrait;
Expand Down

0 comments on commit b011bdf

Please sign in to comment.