File: disable-test-missing-testdata.diff

package info (click to toggle)
rust-image 0.25.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,044 kB
  • sloc: makefile: 2
file content (259 lines) | stat: -rw-r--r-- 8,188 bytes parent folder | download
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
diff --git a/benches/decode.rs b/benches/decode.rs
index 99e9ce0..d609856 100644
--- a/benches/decode.rs
+++ b/benches/decode.rs
@@ -92,7 +92,7 @@ fn bench_load(c: &mut Criterion, def: &BenchDef) {
     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| {
@@ -100,7 +100,7 @@ fn bench_load(c: &mut Criterion, def: &BenchDef) {
                 image::load_from_memory_with_format(&buf, def.format).unwrap();
             });
         });
-    }
+    }*/
 }
 
 const IMAGE_DIR: [&str; 3] = [".", "tests", "images"];
diff --git a/src/codecs/bmp/decoder.rs b/src/codecs/bmp/decoder.rs
index 5771665..e3493af 100644
--- a/src/codecs/bmp/decoder.rs
+++ b/src/codecs/bmp/decoder.rs
@@ -1419,6 +1419,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());
@@ -1457,6 +1458,7 @@ mod test {
     }
 
     #[test]
+    #[ignore = "skipping ..."]
     fn test_no_header() {
         let tests = [
             "Info_R8_G8_B8.bmp",
diff --git a/src/codecs/jpeg/decoder.rs b/src/codecs/jpeg/decoder.rs
index ddff9a9..0d564e0 100644
--- a/src/codecs/jpeg/decoder.rs
+++ b/src/codecs/jpeg/decoder.rs
@@ -202,6 +202,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();
diff --git a/src/codecs/openexr.rs b/src/codecs/openexr.rs
index 096d323..f4bf7ed 100644
--- a/src/codecs/openexr.rs
+++ b/src/codecs/openexr.rs
@@ -412,6 +412,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.
diff --git a/src/codecs/png.rs b/src/codecs/png.rs
index c704b30..c1de4ce 100644
--- a/src/codecs/png.rs
+++ b/src/codecs/png.rs
@@ -742,6 +742,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")
@@ -767,6 +768,7 @@ mod tests {
     }
 
     #[test]
+    #[ignore = "skipping ..."]
     fn underlying_error() {
         use std::error::Error;
 
diff --git a/src/codecs/qoi.rs b/src/codecs/qoi.rs
index ab76cb7..4c2ee9a 100644
--- a/src/codecs/qoi.rs
+++ b/src/codecs/qoi.rs
@@ -110,6 +110,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");
diff --git a/src/codecs/tga/encoder.rs b/src/codecs/tga/encoder.rs
index cc4b24c..ad4c783 100644
--- a/src/codecs/tga/encoder.rs
+++ b/src/codecs/tga/encoder.rs
@@ -441,6 +441,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
diff --git a/src/imageops/mod.rs b/src/imageops/mod.rs
index b2626c8..115bf6a 100644
--- a/src/imageops/mod.rs
+++ b/src/imageops/mod.rs
@@ -546,6 +546,7 @@ mod tests {
 
     #[test]
     #[cfg(feature = "tiff")]
+    #[ignore = "skipping ..."]
     fn fast_blur_approximates_gaussian_blur_well() {
         let path = concat!(
             env!("CARGO_MANIFEST_DIR"),
diff --git a/src/imageops/sample.rs b/src/imageops/sample.rs
index 4d62cc6..d9b0adc 100644
--- a/src/imageops/sample.rs
+++ b/src/imageops/sample.rs
@@ -1616,6 +1616,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;
@@ -1628,6 +1629,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();
@@ -1637,6 +1639,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();
@@ -1656,6 +1659,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();
@@ -1745,6 +1749,7 @@ mod tests {
     }
 
     #[bench]
+    #[ignore = "skipping ..."]
     #[cfg(all(feature = "benchmarks", feature = "tiff"))]
     fn bench_resize_same_size(b: &mut test::Bencher) {
         let path = concat!(
@@ -1765,6 +1770,7 @@ mod tests {
     }
 
     #[bench]
+    #[ignore = "skipping ..."]
     #[cfg(all(feature = "benchmarks", feature = "tiff"))]
     fn bench_thumbnail(b: &mut test::Bencher) {
         let path = concat!(
@@ -1779,6 +1785,7 @@ mod tests {
     }
 
     #[bench]
+    #[ignore = "skipping ..."]
     #[cfg(all(feature = "benchmarks", feature = "tiff"))]
     fn bench_thumbnail_upsize(b: &mut test::Bencher) {
         let path = concat!(
@@ -1793,6 +1800,7 @@ mod tests {
     }
 
     #[bench]
+    #[ignore = "skipping ..."]
     #[cfg(all(feature = "benchmarks", feature = "tiff"))]
     fn bench_thumbnail_upsize_irregular(b: &mut test::Bencher) {
         let path = concat!(
@@ -1807,6 +1815,7 @@ mod tests {
     }
 
     #[test]
+    #[ignore = "skipping ..."]
     #[cfg(feature = "png")]
     fn resize_transparent_image() {
         use super::FilterType::{CatmullRom, Gaussian, Lanczos3, Nearest, Triangle};
diff --git a/src/images/dynimage.rs b/src/images/dynimage.rs
index da27e70..80d297d 100644
--- a/src/images/dynimage.rs
+++ b/src/images/dynimage.rs
@@ -1723,6 +1723,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();
@@ -1731,6 +1732,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();
@@ -2204,6 +2206,7 @@ mod test {
     /// based directly on the public imageops interface) at a later point.
     #[cfg(feature = "png")]
     #[test]
+    #[ignore = "skipping ..."]
     fn color_space_independent_imageops() {
         let im_path = "./tests/images/png/16bpc/basn6a16.png";
 
diff --git a/src/metadata.rs b/src/metadata.rs
index f0e55e5..1881df0 100644
--- a/src/metadata.rs
+++ b/src/metadata.rs
@@ -158,6 +158,7 @@ enum ExifEndian {
     Little,
 }
 
+/*
 #[cfg(all(test, feature = "jpeg"))]
 mod tests {
     use crate::{codecs::jpeg::JpegDecoder, ImageDecoder as _};
@@ -190,3 +191,4 @@ mod tests {
         assert_eq!(orientation, Orientation::NoTransforms);
     }
 }
+*/