| 1 |
Index: tiff/tests/decode_bigtiff_images.rs |
| 2 |
=================================================================== |
| 3 |
--- tiff.orig/tests/decode_bigtiff_images.rs |
| 4 |
+++ tiff/tests/decode_bigtiff_images.rs |
| 5 |
@@ -10,6 +10,7 @@ use std::path::PathBuf; |
| 6 |
const TEST_IMAGE_DIR: &str = "./tests/images/bigtiff"; |
| 7 |
|
| 8 |
#[test] |
| 9 |
+#[ignore = "skipping, missing test data"] |
| 10 |
fn test_big_tiff() { |
| 11 |
let filenames = ["BigTIFF.tif", "BigTIFFMotorola.tif", "BigTIFFLong.tif"]; |
| 12 |
for filename in filenames.iter() { |
| 13 |
Index: tiff/tests/decode_fp16_images.rs |
| 14 |
=================================================================== |
| 15 |
--- tiff.orig/tests/decode_fp16_images.rs |
| 16 |
+++ tiff/tests/decode_fp16_images.rs |
| 17 |
@@ -8,6 +8,7 @@ use std::path::PathBuf; |
| 18 |
|
| 19 |
const TEST_IMAGE_DIR: &str = "./tests/images/"; |
| 20 |
|
| 21 |
+/* |
| 22 |
/// Test a basic all white image |
| 23 |
#[test] |
| 24 |
fn test_white_ieee_fp16() { |
| 25 |
@@ -193,3 +194,4 @@ fn test_predictor_ieee_fp16() { |
| 26 |
} |
| 27 |
} |
| 28 |
} |
| 29 |
+*/ |
| 30 |
Index: tiff/tests/decode_geotiff_images.rs |
| 31 |
=================================================================== |
| 32 |
--- tiff.orig/tests/decode_geotiff_images.rs |
| 33 |
+++ tiff/tests/decode_geotiff_images.rs |
| 34 |
@@ -10,6 +10,7 @@ use std::path::PathBuf; |
| 35 |
const TEST_IMAGE_DIR: &str = "./tests/geotiff"; |
| 36 |
|
| 37 |
#[test] |
| 38 |
+#[ignore = "skipping, missing test data"] |
| 39 |
fn test_geo_tiff() { |
| 40 |
let filenames = ["geo-5b.tif"]; |
| 41 |
for filename in filenames.iter() { |
| 42 |
@@ -64,6 +65,7 @@ fn test_geo_tiff() { |
| 43 |
|
| 44 |
#[cfg(feature = "webp")] |
| 45 |
#[test] |
| 46 |
+#[ignore = "skipping, missing test data"] |
| 47 |
fn test_webp_tiff() { |
| 48 |
let filenames = ["usda_naip_256_webp_z3.tif"]; |
| 49 |
let mut buffer = DecodingResult::U8(vec![]); |
| 50 |
Index: tiff/tests/decode_images.rs |
| 51 |
=================================================================== |
| 52 |
--- tiff.orig/tests/decode_images.rs |
| 53 |
+++ tiff/tests/decode_images.rs |
| 54 |
@@ -53,7 +53,7 @@ fn test_image_color_type_unsupported(fil |
| 55 |
)) |
| 56 |
)); |
| 57 |
} |
| 58 |
- |
| 59 |
+/* |
| 60 |
#[test] |
| 61 |
fn test_cmyk_u8() { |
| 62 |
test_image_sum_u8("cmyk-3c-8b.tiff", ColorType::CMYK(8), 8522658); |
| 63 |
@@ -177,7 +177,7 @@ fn test_string_tags() { |
| 64 |
}; |
| 65 |
} |
| 66 |
} |
| 67 |
- |
| 68 |
+*/ |
| 69 |
#[test] |
| 70 |
fn test_decode_data() { |
| 71 |
let mut image_data = Vec::new(); |
| 72 |
@@ -201,6 +201,7 @@ fn test_decode_data() { |
| 73 |
} |
| 74 |
|
| 75 |
#[test] |
| 76 |
+#[ignore = "skipping, missing testdata"] |
| 77 |
fn issue_69() { |
| 78 |
test_image_sum_u16("issue_69_lzw.tiff", ColorType::Gray(16), 1015486); |
| 79 |
test_image_sum_u16("issue_69_packbits.tiff", ColorType::Gray(16), 1015486); |
| 80 |
@@ -218,21 +219,25 @@ fn issue_69() { |
| 81 |
//} |
| 82 |
|
| 83 |
#[test] |
| 84 |
+#[ignore = "skipping, missing testdata"] |
| 85 |
fn test_tiled_gray_i1() { |
| 86 |
test_image_sum_u8("tiled-gray-i1.tif", ColorType::Gray(1), 30531); |
| 87 |
} |
| 88 |
|
| 89 |
#[test] |
| 90 |
+#[ignore = "skipping, missing testdata"] |
| 91 |
fn test_tiled_rgb_u8() { |
| 92 |
test_image_sum_u8("tiled-rgb-u8.tif", ColorType::RGB(8), 39528948); |
| 93 |
} |
| 94 |
|
| 95 |
#[test] |
| 96 |
+#[ignore = "skipping, missing testdata"] |
| 97 |
fn test_tiled_rect_rgb_u8() { |
| 98 |
test_image_sum_u8("tiled-rect-rgb-u8.tif", ColorType::RGB(8), 62081032); |
| 99 |
} |
| 100 |
|
| 101 |
#[test] |
| 102 |
+#[ignore = "skipping, missing test data"] |
| 103 |
fn test_inner_access() { |
| 104 |
let path = PathBuf::from(TEST_IMAGE_DIR).join("tiled-rect-rgb-u8.tif"); |
| 105 |
let img_file = File::open(path).expect("Cannot find test image!"); |
| 106 |
@@ -286,16 +291,19 @@ fn test_tiled_jpeg_rgb_u8() { |
| 107 |
} */ |
| 108 |
|
| 109 |
#[test] |
| 110 |
+#[ignore = "skipping, missing testdata"] |
| 111 |
fn test_tiled_oversize_gray_i8() { |
| 112 |
test_image_sum_i8("tiled-oversize-gray-i8.tif", ColorType::Gray(8), 1214996); |
| 113 |
} |
| 114 |
|
| 115 |
#[test] |
| 116 |
+#[ignore = "skipping, missing testdata"] |
| 117 |
fn test_tiled_cmyk_i8() { |
| 118 |
test_image_sum_i8("tiled-cmyk-i8.tif", ColorType::CMYK(8), 1759101); |
| 119 |
} |
| 120 |
|
| 121 |
#[test] |
| 122 |
+#[ignore = "skipping, missing testdata"] |
| 123 |
fn test_tiled_incremental() { |
| 124 |
let file = "tiled-rgb-u8.tif"; |
| 125 |
let expected_type = ColorType::RGB(8); |
| 126 |
@@ -340,11 +348,13 @@ fn test_tiled_incremental() { |
| 127 |
} |
| 128 |
|
| 129 |
#[test] |
| 130 |
+#[ignore = "skipping, missing test data"] |
| 131 |
fn test_planar_rgb_u8() { |
| 132 |
test_image_sum_u8("planar-rgb-u8.tif", ColorType::RGB(8), 15417630); |
| 133 |
} |
| 134 |
|
| 135 |
#[test] |
| 136 |
+#[ignore = "skipping, missing test data"] |
| 137 |
fn test_read_planar_bands() { |
| 138 |
// gdal_translate tiled-rgb-u8.tif planar-rgb-u8.tif -co INTERLEAVE=BAND -co COMPRESS=LZW -co PROFILE=BASELINE |
| 139 |
let file = "planar-rgb-u8.tif"; |
| 140 |
@@ -554,22 +564,26 @@ fn timeout() { |
| 141 |
} |
| 142 |
|
| 143 |
#[test] |
| 144 |
+#[ignore = "skipping, missing testdata"] |
| 145 |
fn test_no_rows_per_strip() { |
| 146 |
test_image_sum_u8("no_rows_per_strip.tiff", ColorType::RGB(8), 99448840); |
| 147 |
} |
| 148 |
|
| 149 |
#[test] |
| 150 |
+#[ignore = "skipping, missing testdata"] |
| 151 |
fn test_predictor_3_rgb_f32() { |
| 152 |
test_image_sum_f32("predictor-3-rgb-f32.tif", ColorType::RGB(32), 54004.33); |
| 153 |
} |
| 154 |
|
| 155 |
#[test] |
| 156 |
+#[ignore = "skipping, missing testdata"] |
| 157 |
fn test_predictor_3_gray_f32() { |
| 158 |
test_image_sum_f32("predictor-3-gray-f32.tif", ColorType::Gray(32), 20008.275); |
| 159 |
} |
| 160 |
|
| 161 |
#[test] |
| 162 |
#[cfg(feature = "zstd")] |
| 163 |
+#[ignore = "skipping, missing testdata"] |
| 164 |
fn test_zstd_compression() { |
| 165 |
// gdal_translate -co COMPRESS=ZSTD -co ZSTD_LEVEL=20 int16.tif int16_zstd.tif |
| 166 |
test_image_sum_i16("int16_zstd.tif", ColorType::Gray(16), 354396); |
| 167 |
@@ -629,6 +643,7 @@ fn byte_order_u64(bytes: &mut [u8]) { |
| 168 |
} |
| 169 |
|
| 170 |
#[test] |
| 171 |
+#[ignore = "skipping, missing test data"] |
| 172 |
fn bytes_cmyk_3c_8b() { |
| 173 |
test_image_bytes( |
| 174 |
"cmyk-3c-8b.tiff", |
| 175 |
@@ -638,6 +653,7 @@ fn bytes_cmyk_3c_8b() { |
| 176 |
} |
| 177 |
|
| 178 |
#[test] |
| 179 |
+#[ignore = "skipping, missing test data"] |
| 180 |
fn bytes_gray_16b() { |
| 181 |
test_image_bytes( |
| 182 |
"minisblack-1c-16b.tiff", |
| 183 |
@@ -647,6 +663,7 @@ fn bytes_gray_16b() { |
| 184 |
} |
| 185 |
|
| 186 |
#[test] |
| 187 |
+#[ignore = "skipping, missing test data"] |
| 188 |
fn bytes_gray_32b() { |
| 189 |
test_image_bytes( |
| 190 |
"gradient-1c-32b.tiff", |
| 191 |
@@ -656,6 +673,7 @@ fn bytes_gray_32b() { |
| 192 |
} |
| 193 |
|
| 194 |
#[test] |
| 195 |
+#[ignore = "skipping, missing test data"] |
| 196 |
fn bytes_gray_u64() { |
| 197 |
test_image_bytes( |
| 198 |
"gradient-1c-64b.tiff", |
| 199 |
@@ -665,6 +683,7 @@ fn bytes_gray_u64() { |
| 200 |
} |
| 201 |
|
| 202 |
#[test] |
| 203 |
+#[ignore = "skipping, missing test data"] |
| 204 |
fn bytes_gray_f32() { |
| 205 |
test_image_bytes( |
| 206 |
"gradient-1c-32b-float.tiff", |
| 207 |
@@ -675,17 +694,20 @@ fn bytes_gray_f32() { |
| 208 |
|
| 209 |
#[test] |
| 210 |
#[cfg(feature = "fax")] |
| 211 |
+#[ignore = "skipping, missing test data"] |
| 212 |
fn test_fax4() { |
| 213 |
test_image_sum_u8("fax4.tiff", ColorType::Gray(1), 7802706); |
| 214 |
} |
| 215 |
|
| 216 |
#[test] |
| 217 |
#[cfg(feature = "fax")] |
| 218 |
+#[ignore = "skipping, missing test data"] |
| 219 |
fn test_fax4_white_is_min() { |
| 220 |
test_image_sum_u8("imagemagick_group4.tiff", ColorType::Gray(1), 3742820); |
| 221 |
} |
| 222 |
|
| 223 |
#[test] |
| 224 |
+#[ignore = "skipping, missing test data"] |
| 225 |
fn write_extra_bits_image() { |
| 226 |
use tiff::{encoder, tags::ExtraSamples}; |
| 227 |
|
| 228 |
@@ -705,6 +727,7 @@ fn write_extra_bits_image() { |
| 229 |
} |
| 230 |
|
| 231 |
#[test] |
| 232 |
+#[ignore = "skipping, missing test data"] |
| 233 |
fn extra_bits_gray() { |
| 234 |
test_image_sum_u8( |
| 235 |
"extra_bits_gray_8b.tiff", |
| 236 |
@@ -717,6 +740,7 @@ fn extra_bits_gray() { |
| 237 |
} |
| 238 |
|
| 239 |
#[test] |
| 240 |
+#[ignore = "skipping, missing test data"] |
| 241 |
fn extra_bits_rgb() { |
| 242 |
test_image_sum_u8("extra_bits_rgb_8b.tiff", ColorType::RGB(8), 0); |
| 243 |
} |
| 244 |
Index: tiff/tests/encode_images.rs |
| 245 |
=================================================================== |
| 246 |
--- tiff.orig/tests/encode_images.rs |
| 247 |
+++ tiff/tests/encode_images.rs |
| 248 |
@@ -279,7 +279,7 @@ macro_rules! test_roundtrip { |
| 249 |
} |
| 250 |
}; |
| 251 |
} |
| 252 |
- |
| 253 |
+/* |
| 254 |
test_roundtrip!(test_u8_roundtrip, U8, u8); |
| 255 |
test_roundtrip!(test_i8_roundtrip, I8, i8); |
| 256 |
test_roundtrip!(test_u16_roundtrip, U16, u16); |
| 257 |
@@ -378,7 +378,7 @@ fn test_gray_f64_roundtrip() { |
| 258 |
fn test_ycbcr_u8_roundtrip() { |
| 259 |
test_u8_roundtrip::<colortype::YCbCr8>("tiled-jpeg-ycbcr.tif", ColorType::YCbCr(8)); |
| 260 |
} |
| 261 |
- |
| 262 |
+*/ |
| 263 |
trait AssertDecode { |
| 264 |
fn assert_tag_u32(&mut self, tag: u16) -> u32; |
| 265 |
fn assert_tag_u32_vec(&mut self, tag: u16) -> Vec<u32>; |
| 266 |
Index: tiff/tests/fuzz_tests.rs |
| 267 |
=================================================================== |
| 268 |
--- tiff.orig/tests/fuzz_tests.rs |
| 269 |
+++ tiff/tests/fuzz_tests.rs |
| 270 |
@@ -17,7 +17,7 @@ fn decode_tiff(file: File) -> TiffResult |
| 271 |
decoder.read_image()?; |
| 272 |
Ok(()) |
| 273 |
} |
| 274 |
- |
| 275 |
+/* |
| 276 |
#[test] |
| 277 |
fn oor_panic() { |
| 278 |
test_directory("./tests/fuzz_images/oor_panic", |file| { |
| 279 |
@@ -49,3 +49,4 @@ fn divide_by_zero() { |
| 280 |
true |
| 281 |
}); |
| 282 |
} |
| 283 |
+*/ |
| 284 |
Index: tiff/tests/predict.rs |
| 285 |
=================================================================== |
| 286 |
--- tiff.orig/tests/predict.rs |
| 287 |
+++ tiff/tests/predict.rs |
| 288 |
@@ -10,6 +10,7 @@ use std::path::PathBuf; |
| 289 |
|
| 290 |
const TEST_IMAGE_DIR: &str = "./tests/images/"; |
| 291 |
|
| 292 |
+/* |
| 293 |
macro_rules! test_predict { |
| 294 |
($name:ident, $buffer:ident, $buffer_ty:ty) => { |
| 295 |
fn $name<C: colortype::ColorType<Inner = $buffer_ty>>( |
| 296 |
@@ -229,3 +230,4 @@ fn test_rgb_u64_predict_roundtrip() { |
| 297 |
fn test_ycbcr_u8_predict_roundtrip() { |
| 298 |
test_u8_predict_roundtrip::<colortype::YCbCr8>("tiled-jpeg-ycbcr.tif", ColorType::YCbCr(8)); |
| 299 |
} |
| 300 |
+*/ |
| 301 |
Index: tiff/src/decoder/mod.rs |
| 302 |
=================================================================== |
| 303 |
--- tiff.orig/src/decoder/mod.rs |
| 304 |
+++ tiff/src/decoder/mod.rs |
| 305 |
@@ -1914,6 +1914,7 @@ mod tests { |
| 306 |
}; |
| 307 |
|
| 308 |
#[test] |
| 309 |
+ #[ignore = "skipping, missing test data"] |
| 310 |
fn equivalence_of_tag_readers() { |
| 311 |
let file = std::fs::File::open(concat!( |
| 312 |
env!("CARGO_MANIFEST_DIR"), |
| 313 |
Index: tiff/tests/decode_planes.rs |
| 314 |
=================================================================== |
| 315 |
--- tiff.orig/tests/decode_planes.rs |
| 316 |
+++ tiff/tests/decode_planes.rs |
| 317 |
@@ -6,6 +6,7 @@ use std::path::PathBuf; |
| 318 |
const TEST_IMAGE_DIR: &str = "./tests/images/"; |
| 319 |
|
| 320 |
#[test] |
| 321 |
+#[ignore = "skipping, missing test data"] |
| 322 |
fn read_all_planes() { |
| 323 |
let path = PathBuf::from(TEST_IMAGE_DIR).join("planar-rgb-u8.tif"); |
| 324 |
let file = File::open(path).unwrap(); |
| 325 |
@@ -32,6 +33,7 @@ fn read_all_planes() { |
| 326 |
} |
| 327 |
|
| 328 |
#[test] |
| 329 |
+#[ignore = "skipping, missing test data"] |
| 330 |
fn read_first_coding_unit() { |
| 331 |
let path = PathBuf::from(TEST_IMAGE_DIR).join("planar-rgb-u8.tif"); |
| 332 |
let file = File::open(path).unwrap(); |
| 333 |
@@ -76,6 +78,7 @@ fn read_first_coding_unit() { |
| 334 |
} |
| 335 |
|
| 336 |
#[test] |
| 337 |
+#[ignore = "skipping, missing test data"] |
| 338 |
fn read_planes_by_limits() { |
| 339 |
let path = PathBuf::from(TEST_IMAGE_DIR).join("planar-rgb-u8.tif"); |
| 340 |
let file = File::open(path).unwrap(); |
| 341 |
Index: tiff/tests/subsubifds.rs |
| 342 |
=================================================================== |
| 343 |
--- tiff.orig/tests/subsubifds.rs |
| 344 |
+++ tiff/tests/subsubifds.rs |
| 345 |
@@ -16,6 +16,7 @@ const TEST_IMAGE_SUBIFD: &str = "./tests |
| 346 |
use std::fs::File; |
| 347 |
|
| 348 |
#[test] |
| 349 |
+#[ignore = "skipping, missing test data"] |
| 350 |
fn decode_seek_chain() { |
| 351 |
let file = File::open(TEST_IMAGE_SUBIFD).expect("Cannot open test image"); |
| 352 |
let mut decoder = Decoder::new(file).expect("Invalid format to create decoder"); |