1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
|
Index: image/src/codecs/bmp/decoder.rs
===================================================================
--- image.orig/src/codecs/bmp/decoder.rs
+++ image/src/codecs/bmp/decoder.rs
@@ -1399,6 +1399,7 @@ mod test {
}
#[test]
+ #[ignore = "skipping ..."]
fn read_rect() {
let f =
BufReader::new(std::fs::File::open("tests/images/bmp/images/Core_8_Bit.bmp").unwrap());
@@ -1437,6 +1438,7 @@ mod test {
}
#[test]
+ #[ignore = "skipping ..."]
fn test_no_header() {
let tests = [
"Info_R8_G8_B8.bmp",
Index: image/src/codecs/png.rs
===================================================================
--- image.orig/src/codecs/png.rs
+++ image/src/codecs/png.rs
@@ -712,6 +712,7 @@ mod tests {
use std::io::{BufReader, Cursor, Read};
#[test]
+ #[ignore = "skipping ..."]
fn ensure_no_decoder_off_by_one() {
let dec = PngDecoder::new(BufReader::new(
std::fs::File::open("tests/images/png/bugfixes/debug_triangle_corners_widescreen.png")
@@ -737,6 +738,7 @@ mod tests {
}
#[test]
+ #[ignore = "skipping ..."]
fn underlying_error() {
use std::error::Error;
Index: image/src/dynimage.rs
===================================================================
--- image.orig/src/dynimage.rs
+++ image/src/dynimage.rs
@@ -1374,6 +1374,7 @@ mod test {
#[cfg(feature = "jpeg")]
#[test]
+ #[ignore = "skipping ..."]
fn image_dimensions() {
let im_path = "./tests/images/jpg/progressive/cat.jpg";
let dims = super::image_dimensions(im_path).unwrap();
@@ -1382,6 +1383,7 @@ mod test {
#[cfg(feature = "png")]
#[test]
+ #[ignore = "skipping ..."]
fn open_16bpc_png() {
let im_path = "./tests/images/png/16bpc/basn6a16.png";
let image = super::open(im_path).unwrap();
Index: image/src/imageops/sample.rs
===================================================================
--- image.orig/src/imageops/sample.rs
+++ image/src/imageops/sample.rs
@@ -1065,6 +1065,7 @@ mod tests {
use test;
#[bench]
+ #[ignore = "skipping ..."]
#[cfg(all(feature = "benchmarks", feature = "png"))]
fn bench_resize(b: &mut test::Bencher) {
use std::path::Path;
@@ -1077,6 +1078,7 @@ mod tests {
#[test]
#[cfg(feature = "png")]
+ #[ignore = "skipping ..."]
fn test_resize_same_size() {
use std::path::Path;
let img = crate::open(Path::new("./examples/fractal.png")).unwrap();
@@ -1086,6 +1088,7 @@ mod tests {
#[test]
#[cfg(feature = "png")]
+ #[ignore = "skipping ..."]
fn test_sample_bilinear() {
use std::path::Path;
let img = crate::open(Path::new("./examples/fractal.png")).unwrap();
@@ -1105,6 +1108,7 @@ mod tests {
}
#[test]
#[cfg(feature = "png")]
+ #[ignore = "skipping ..."]
fn test_sample_nearest() {
use std::path::Path;
let img = crate::open(Path::new("./examples/fractal.png")).unwrap();
@@ -1194,6 +1198,7 @@ mod tests {
}
#[bench]
+ #[ignore = "skipping ..."]
#[cfg(all(feature = "benchmarks", feature = "tiff"))]
fn bench_resize_same_size(b: &mut test::Bencher) {
let path = concat!(
@@ -1214,6 +1219,7 @@ mod tests {
}
#[bench]
+ #[ignore = "skipping ..."]
#[cfg(all(feature = "benchmarks", feature = "tiff"))]
fn bench_thumbnail(b: &mut test::Bencher) {
let path = concat!(
@@ -1228,6 +1234,7 @@ mod tests {
}
#[bench]
+ #[ignore = "skipping ..."]
#[cfg(all(feature = "benchmarks", feature = "tiff"))]
fn bench_thumbnail_upsize(b: &mut test::Bencher) {
let path = concat!(
@@ -1242,6 +1249,7 @@ mod tests {
}
#[bench]
+ #[ignore = "skipping ..."]
#[cfg(all(feature = "benchmarks", feature = "tiff"))]
fn bench_thumbnail_upsize_irregular(b: &mut test::Bencher) {
let path = concat!(
@@ -1256,6 +1264,7 @@ mod tests {
}
#[test]
+ #[ignore = "skipping ..."]
#[cfg(feature = "png")]
fn resize_transparent_image() {
use super::FilterType::{CatmullRom, Gaussian, Lanczos3, Nearest, Triangle};
Index: image/benches/decode.rs
===================================================================
--- image.orig/benches/decode.rs
+++ image/benches/decode.rs
@@ -90,7 +90,7 @@ fn bench_load(c: &mut Criterion, def: &B
let mut group = c.benchmark_group(&group_name);
let paths = IMAGE_DIR.iter().chain(def.dir);
- for file_name in def.files {
+ /*for file_name in def.files {
let path: path::PathBuf = paths.clone().chain(iter::once(file_name)).collect();
let buf = fs::read(path).unwrap();
group.bench_function(file_name.to_owned(), |b| {
@@ -98,7 +98,7 @@ fn bench_load(c: &mut Criterion, def: &B
image::load_from_memory_with_format(&buf, def.format).unwrap();
});
});
- }
+ }*/
}
const IMAGE_DIR: [&str; 3] = [".", "tests", "images"];
Index: image/src/codecs/openexr.rs
===================================================================
--- image.orig/src/codecs/openexr.rs
+++ image/src/codecs/openexr.rs
@@ -409,6 +409,7 @@ mod test {
}
#[test]
+ #[ignore = "skipping ..."]
fn compare_exr_hdr() {
if cfg!(not(feature = "hdr")) {
eprintln!("warning: to run all the openexr tests, activate the hdr feature flag");
@@ -486,6 +487,7 @@ mod test {
}
#[test]
+ #[ignore = "skipping ..."]
fn compare_rgba_rgb() {
let exr_path = BASE_PATH
.iter()
@@ -503,6 +505,7 @@ mod test {
}
#[test]
+ #[ignore = "skipping ..."]
fn compare_cropped() {
// like in photoshop, exr images may have layers placed anywhere in a canvas.
// we don't want to load the pixels from the layer, but we want to load the pixels from the canvas.
Index: image/src/codecs/jpeg/decoder.rs
===================================================================
--- image.orig/src/codecs/jpeg/decoder.rs
+++ image/src/codecs/jpeg/decoder.rs
@@ -195,6 +195,7 @@ mod tests {
use std::{fs, io::Cursor};
#[test]
+ #[ignore = "skipping ..."]
fn test_exif_orientation() {
let data = fs::read("tests/images/jpg/portrait_2.jpg").unwrap();
let mut decoder = JpegDecoder::new(Cursor::new(data)).unwrap();
Index: image/src/codecs/qoi.rs
===================================================================
--- image.orig/src/codecs/qoi.rs
+++ image/src/codecs/qoi.rs
@@ -108,6 +108,7 @@ mod tests {
use std::fs::File;
#[test]
+ #[ignore = "skipping ..."]
fn decode_test_image() {
let decoder = QoiDecoder::new(File::open("tests/images/qoi/basic-test.qoi").unwrap())
.expect("Unable to read QOI file");
Index: image/src/codecs/tga/encoder.rs
===================================================================
--- image.orig/src/codecs/tga/encoder.rs
+++ image/src/codecs/tga/encoder.rs
@@ -437,6 +437,7 @@ mod tests {
}
#[test]
+ #[ignore = "skipping ..."]
fn round_trip_bw() {
// This example demonstrates the run-length counter being saturated
// It should never overflow and can be 128 max
Index: image/src/imageops/mod.rs
===================================================================
--- image.orig/src/imageops/mod.rs
+++ image/src/imageops/mod.rs
@@ -545,6 +545,7 @@ mod tests {
#[test]
#[cfg(feature = "tiff")]
+ #[ignore = "skipping ..."]
fn fast_blur_approximates_gaussian_blur_well() {
let path = concat!(
env!("CARGO_MANIFEST_DIR"),
|