Index: tiff/tests/decode_bigtiff_images.rs =================================================================== --- tiff.orig/tests/decode_bigtiff_images.rs +++ tiff/tests/decode_bigtiff_images.rs @@ -10,6 +10,7 @@ use std::path::PathBuf; const TEST_IMAGE_DIR: &str = "./tests/images/bigtiff"; #[test] +#[ignore = "skipping, missing test data"] fn test_big_tiff() { let filenames = ["BigTIFF.tif", "BigTIFFMotorola.tif", "BigTIFFLong.tif"]; for filename in filenames.iter() { Index: tiff/tests/decode_fp16_images.rs =================================================================== --- tiff.orig/tests/decode_fp16_images.rs +++ tiff/tests/decode_fp16_images.rs @@ -8,6 +8,7 @@ use std::path::PathBuf; const TEST_IMAGE_DIR: &str = "./tests/images/"; +/* /// Test a basic all white image #[test] fn test_white_ieee_fp16() { @@ -193,3 +194,4 @@ fn test_predictor_ieee_fp16() { } } } +*/ Index: tiff/tests/decode_geotiff_images.rs =================================================================== --- tiff.orig/tests/decode_geotiff_images.rs +++ tiff/tests/decode_geotiff_images.rs @@ -10,6 +10,7 @@ use std::path::PathBuf; const TEST_IMAGE_DIR: &str = "./tests/geotiff"; #[test] +#[ignore = "skipping, missing test data"] fn test_geo_tiff() { let filenames = ["geo-5b.tif"]; for filename in filenames.iter() { @@ -64,6 +65,7 @@ fn test_geo_tiff() { #[cfg(feature = "webp")] #[test] +#[ignore = "skipping, missing test data"] fn test_webp_tiff() { let filenames = ["usda_naip_256_webp_z3.tif"]; let mut buffer = DecodingResult::U8(vec![]); Index: tiff/tests/decode_images.rs =================================================================== --- tiff.orig/tests/decode_images.rs +++ tiff/tests/decode_images.rs @@ -53,7 +53,7 @@ fn test_image_color_type_unsupported(fil )) )); } - +/* #[test] fn test_cmyk_u8() { test_image_sum_u8("cmyk-3c-8b.tiff", ColorType::CMYK(8), 8522658); @@ -177,7 +177,7 @@ fn test_string_tags() { }; } } - +*/ #[test] fn test_decode_data() { let mut image_data = Vec::new(); @@ -201,6 +201,7 @@ fn test_decode_data() { } #[test] +#[ignore = "skipping, missing testdata"] fn issue_69() { test_image_sum_u16("issue_69_lzw.tiff", ColorType::Gray(16), 1015486); test_image_sum_u16("issue_69_packbits.tiff", ColorType::Gray(16), 1015486); @@ -218,21 +219,25 @@ fn issue_69() { //} #[test] +#[ignore = "skipping, missing testdata"] fn test_tiled_gray_i1() { test_image_sum_u8("tiled-gray-i1.tif", ColorType::Gray(1), 30531); } #[test] +#[ignore = "skipping, missing testdata"] fn test_tiled_rgb_u8() { test_image_sum_u8("tiled-rgb-u8.tif", ColorType::RGB(8), 39528948); } #[test] +#[ignore = "skipping, missing testdata"] fn test_tiled_rect_rgb_u8() { test_image_sum_u8("tiled-rect-rgb-u8.tif", ColorType::RGB(8), 62081032); } #[test] +#[ignore = "skipping, missing test data"] fn test_inner_access() { let path = PathBuf::from(TEST_IMAGE_DIR).join("tiled-rect-rgb-u8.tif"); let img_file = File::open(path).expect("Cannot find test image!"); @@ -286,16 +291,19 @@ fn test_tiled_jpeg_rgb_u8() { } */ #[test] +#[ignore = "skipping, missing testdata"] fn test_tiled_oversize_gray_i8() { test_image_sum_i8("tiled-oversize-gray-i8.tif", ColorType::Gray(8), 1214996); } #[test] +#[ignore = "skipping, missing testdata"] fn test_tiled_cmyk_i8() { test_image_sum_i8("tiled-cmyk-i8.tif", ColorType::CMYK(8), 1759101); } #[test] +#[ignore = "skipping, missing testdata"] fn test_tiled_incremental() { let file = "tiled-rgb-u8.tif"; let expected_type = ColorType::RGB(8); @@ -340,11 +348,13 @@ fn test_tiled_incremental() { } #[test] +#[ignore = "skipping, missing test data"] fn test_planar_rgb_u8() { test_image_sum_u8("planar-rgb-u8.tif", ColorType::RGB(8), 15417630); } #[test] +#[ignore = "skipping, missing test data"] fn test_read_planar_bands() { // gdal_translate tiled-rgb-u8.tif planar-rgb-u8.tif -co INTERLEAVE=BAND -co COMPRESS=LZW -co PROFILE=BASELINE let file = "planar-rgb-u8.tif"; @@ -554,22 +564,26 @@ fn timeout() { } #[test] +#[ignore = "skipping, missing testdata"] fn test_no_rows_per_strip() { test_image_sum_u8("no_rows_per_strip.tiff", ColorType::RGB(8), 99448840); } #[test] +#[ignore = "skipping, missing testdata"] fn test_predictor_3_rgb_f32() { test_image_sum_f32("predictor-3-rgb-f32.tif", ColorType::RGB(32), 54004.33); } #[test] +#[ignore = "skipping, missing testdata"] fn test_predictor_3_gray_f32() { test_image_sum_f32("predictor-3-gray-f32.tif", ColorType::Gray(32), 20008.275); } #[test] #[cfg(feature = "zstd")] +#[ignore = "skipping, missing testdata"] fn test_zstd_compression() { // gdal_translate -co COMPRESS=ZSTD -co ZSTD_LEVEL=20 int16.tif int16_zstd.tif test_image_sum_i16("int16_zstd.tif", ColorType::Gray(16), 354396); @@ -629,6 +643,7 @@ fn byte_order_u64(bytes: &mut [u8]) { } #[test] +#[ignore = "skipping, missing test data"] fn bytes_cmyk_3c_8b() { test_image_bytes( "cmyk-3c-8b.tiff", @@ -638,6 +653,7 @@ fn bytes_cmyk_3c_8b() { } #[test] +#[ignore = "skipping, missing test data"] fn bytes_gray_16b() { test_image_bytes( "minisblack-1c-16b.tiff", @@ -647,6 +663,7 @@ fn bytes_gray_16b() { } #[test] +#[ignore = "skipping, missing test data"] fn bytes_gray_32b() { test_image_bytes( "gradient-1c-32b.tiff", @@ -656,6 +673,7 @@ fn bytes_gray_32b() { } #[test] +#[ignore = "skipping, missing test data"] fn bytes_gray_u64() { test_image_bytes( "gradient-1c-64b.tiff", @@ -665,6 +683,7 @@ fn bytes_gray_u64() { } #[test] +#[ignore = "skipping, missing test data"] fn bytes_gray_f32() { test_image_bytes( "gradient-1c-32b-float.tiff", @@ -675,17 +694,20 @@ fn bytes_gray_f32() { #[test] #[cfg(feature = "fax")] +#[ignore = "skipping, missing test data"] fn test_fax4() { test_image_sum_u8("fax4.tiff", ColorType::Gray(1), 7802706); } #[test] #[cfg(feature = "fax")] +#[ignore = "skipping, missing test data"] fn test_fax4_white_is_min() { test_image_sum_u8("imagemagick_group4.tiff", ColorType::Gray(1), 3742820); } #[test] +#[ignore = "skipping, missing test data"] fn write_extra_bits_image() { use tiff::{encoder, tags::ExtraSamples}; @@ -705,6 +727,7 @@ fn write_extra_bits_image() { } #[test] +#[ignore = "skipping, missing test data"] fn extra_bits_gray() { test_image_sum_u8( "extra_bits_gray_8b.tiff", @@ -717,6 +740,7 @@ fn extra_bits_gray() { } #[test] +#[ignore = "skipping, missing test data"] fn extra_bits_rgb() { test_image_sum_u8("extra_bits_rgb_8b.tiff", ColorType::RGB(8), 0); } Index: tiff/tests/encode_images.rs =================================================================== --- tiff.orig/tests/encode_images.rs +++ tiff/tests/encode_images.rs @@ -279,7 +279,7 @@ macro_rules! test_roundtrip { } }; } - +/* test_roundtrip!(test_u8_roundtrip, U8, u8); test_roundtrip!(test_i8_roundtrip, I8, i8); test_roundtrip!(test_u16_roundtrip, U16, u16); @@ -378,7 +378,7 @@ fn test_gray_f64_roundtrip() { fn test_ycbcr_u8_roundtrip() { test_u8_roundtrip::("tiled-jpeg-ycbcr.tif", ColorType::YCbCr(8)); } - +*/ trait AssertDecode { fn assert_tag_u32(&mut self, tag: u16) -> u32; fn assert_tag_u32_vec(&mut self, tag: u16) -> Vec; Index: tiff/tests/fuzz_tests.rs =================================================================== --- tiff.orig/tests/fuzz_tests.rs +++ tiff/tests/fuzz_tests.rs @@ -17,7 +17,7 @@ fn decode_tiff(file: File) -> TiffResult decoder.read_image()?; Ok(()) } - +/* #[test] fn oor_panic() { test_directory("./tests/fuzz_images/oor_panic", |file| { @@ -49,3 +49,4 @@ fn divide_by_zero() { true }); } +*/ Index: tiff/tests/predict.rs =================================================================== --- tiff.orig/tests/predict.rs +++ tiff/tests/predict.rs @@ -10,6 +10,7 @@ use std::path::PathBuf; const TEST_IMAGE_DIR: &str = "./tests/images/"; +/* macro_rules! test_predict { ($name:ident, $buffer:ident, $buffer_ty:ty) => { fn $name>( @@ -229,3 +230,4 @@ fn test_rgb_u64_predict_roundtrip() { fn test_ycbcr_u8_predict_roundtrip() { test_u8_predict_roundtrip::("tiled-jpeg-ycbcr.tif", ColorType::YCbCr(8)); } +*/ Index: tiff/src/decoder/mod.rs =================================================================== --- tiff.orig/src/decoder/mod.rs +++ tiff/src/decoder/mod.rs @@ -1914,6 +1914,7 @@ mod tests { }; #[test] + #[ignore = "skipping, missing test data"] fn equivalence_of_tag_readers() { let file = std::fs::File::open(concat!( env!("CARGO_MANIFEST_DIR"), Index: tiff/tests/decode_planes.rs =================================================================== --- tiff.orig/tests/decode_planes.rs +++ tiff/tests/decode_planes.rs @@ -6,6 +6,7 @@ use std::path::PathBuf; const TEST_IMAGE_DIR: &str = "./tests/images/"; #[test] +#[ignore = "skipping, missing test data"] fn read_all_planes() { let path = PathBuf::from(TEST_IMAGE_DIR).join("planar-rgb-u8.tif"); let file = File::open(path).unwrap(); @@ -32,6 +33,7 @@ fn read_all_planes() { } #[test] +#[ignore = "skipping, missing test data"] fn read_first_coding_unit() { let path = PathBuf::from(TEST_IMAGE_DIR).join("planar-rgb-u8.tif"); let file = File::open(path).unwrap(); @@ -76,6 +78,7 @@ fn read_first_coding_unit() { } #[test] +#[ignore = "skipping, missing test data"] fn read_planes_by_limits() { let path = PathBuf::from(TEST_IMAGE_DIR).join("planar-rgb-u8.tif"); let file = File::open(path).unwrap(); Index: tiff/tests/subsubifds.rs =================================================================== --- tiff.orig/tests/subsubifds.rs +++ tiff/tests/subsubifds.rs @@ -16,6 +16,7 @@ const TEST_IMAGE_SUBIFD: &str = "./tests use std::fs::File; #[test] +#[ignore = "skipping, missing test data"] fn decode_seek_chain() { let file = File::open(TEST_IMAGE_SUBIFD).expect("Cannot open test image"); let mut decoder = Decoder::new(file).expect("Invalid format to create decoder");