Debian Codegraph @

debian/patches/skip_tests_requiring_missing_files.patch

raw
1 Description: Skip tests that fails because of missing files
2 The files used to run the tests are not shipped in the crate
3
4 --- a/Cargo.toml
5 +++ b/Cargo.toml
6 @@ -155,25 +155,25 @@
7 name = "roundtrip"
8 path = "tests/roundtrip.rs"
9
10 -[[bench]]
11 +[[disabled.bench]]
12 name = "pixel_format_conversion"
13 path = "benches/pixel_format_conversion.rs"
14 harness = false
15 required-features = ["rayon"]
16
17 -[[bench]]
18 +[[disabled.bench]]
19 name = "profiling"
20 path = "benches/profiling.rs"
21 harness = false
22 required-features = ["rayon"]
23
24 -[[bench]]
25 +[[disabled.bench]]
26 name = "read"
27 path = "benches/read.rs"
28 harness = false
29 required-features = ["rayon"]
30
31 -[[bench]]
32 +[[disabled.bench]]
33 name = "write"
34 path = "benches/write.rs"
35 harness = false
36 --- a/src/compression/b44/mod.rs
37 +++ b/src/compression/b44/mod.rs
38 @@ -958,6 +958,7 @@
39 assert_eq!(decompressed.len(), 60);
40 }
41
42 + #[ignore]
43 #[test]
44 fn border_on_multiview() {
45 // This test is hard to reproduce, so we use the direct image.
46 --- a/src/image/mod.rs
47 +++ b/src/image/mod.rs
48 @@ -1220,6 +1220,7 @@
49 expect_valid(&lossy, &lossy, false, true);
50 }
51
52 + #[ignore]
53 #[test]
54 fn test_error(){
55
56 --- a/tests/across_compression.rs
57 +++ b/tests/across_compression.rs
58 @@ -91,168 +91,201 @@
59 }
60
61
62 +#[ignore]
63 #[test]
64 fn compare_compression_contents_zip_f32() {
65 expect_eq_uncompressed("f32", "zip.exr");
66 }
67
68 +#[ignore]
69 #[test]
70 fn compare_compression_contents_zip_f16() {
71 expect_eq_uncompressed("f16", "zip.exr");
72 }
73
74 +#[ignore]
75 #[test]
76 fn compare_compression_contents_zips_f32() {
77 expect_eq_uncompressed("f32", "zips.exr");
78 }
79
80 +#[ignore]
81 #[test]
82 fn compare_compression_contents_zips_f16() {
83 expect_eq_uncompressed("f16", "zips.exr");
84 }
85
86 +#[ignore]
87 #[test]
88 fn compare_compression_contents_b44_f32() {
89 expect_eq_uncompressed("f32", "b44.exr"); // f32s are not compressed in b44 and can be compared exactly
90 }
91
92 +#[ignore]
93 #[test]
94 fn compare_compression_contents_b44_f16() {
95 expect_eq_other("f16", "b44.exr", "decompressed_b44.exr");
96 }
97
98 +#[ignore]
99 #[test]
100 fn compare_compression_contents_b44a_f32() {
101 expect_eq_uncompressed("f32", "b44a.exr"); // f32s are not compressed in b44 and can be compared exactly
102 }
103
104 +#[ignore]
105 #[test]
106 fn compare_compression_contents_b44a_f16() {
107 expect_eq_other("f16", "b44a.exr", "decompressed_b44a.exr");
108 }
109
110 +#[ignore]
111 #[test]
112 fn compare_compression_contents_dwaa_f32() {
113 expect_eq_other("f32", "dwaa.exr", "decompressed_dwaa.exr");
114 }
115
116 +#[ignore]
117 #[test]
118 fn compare_compression_contents_dwaa_f16() {
119 expect_eq_other("f16", "dwaa.exr", "decompressed_dwaa.exr");
120 }
121
122 +#[ignore]
123 #[test]
124 fn compare_compression_contents_dwab_f32() {
125 expect_eq_other("f32", "dwab.exr", "decompressed_dwab.exr");
126 }
127
128 +#[ignore]
129 #[test]
130 fn compare_compression_contents_dwab_f16() {
131 expect_eq_other("f16", "dwab.exr", "decompressed_dwab.exr");
132 }
133
134 +#[ignore]
135 #[test]
136 fn compare_compression_contents_piz_f32() {
137 expect_eq_uncompressed("f32", "piz.exr");
138 }
139
140 +#[ignore]
141 #[test]
142 fn compare_compression_contents_piz_f16() {
143 expect_eq_uncompressed("f16", "piz.exr");
144 }
145
146 +#[ignore]
147 #[test]
148 fn compare_compression_contents_rle_f32() {
149 expect_eq_uncompressed("f32", "rle.exr");
150 }
151
152 +#[ignore]
153 #[test]
154 fn compare_compression_contents_rle_f16() {
155 expect_eq_uncompressed("f16", "rle.exr");
156 }
157
158
159 +#[ignore]
160 #[test]
161 fn compare_compression_contents_pxr24_f16() {
162 expect_eq_other("f16", "pxr24.exr", "decompressed_pxr24.exr");
163 }
164
165 +#[ignore]
166 #[test]
167 fn compare_compression_contents_pxr24_f32() {
168 expect_eq_other("f32", "pxr24.exr", "decompressed_pxr24.exr");
169 }
170
171 +#[ignore]
172 #[test]
173 fn compare_png_to_uncompressed_f16() {
174 expect_eq_png("f16_uncompressed.exr");
175 }
176
177 +#[ignore]
178 #[test]
179 fn compare_png_to_piz_f16() {
180 expect_eq_png("f16_piz.exr");
181 }
182
183 +#[ignore]
184 #[test]
185 fn compare_png_to_rle_f16() {
186 expect_eq_png("f16_rle.exr");
187 }
188
189 +#[ignore]
190 #[test]
191 fn compare_png_to_zip_f16() {
192 expect_eq_png("f16_zip.exr");
193 }
194
195 +#[ignore]
196 #[test]
197 fn compare_png_to_zips_f16() {
198 expect_eq_png("f16_zips.exr");
199 }
200
201 +#[ignore]
202 #[test]
203 fn compare_png_to_dwaa_f16() {
204 expect_eq_png("f16_dwaa.exr");
205 }
206
207 +#[ignore]
208 #[test]
209 fn compare_png_to_b44_f16() {
210 expect_eq_png("f16_b44.exr");
211 }
212
213 +#[ignore]
214 #[test]
215 fn compare_png_to_b44a_f16() {
216 expect_eq_png("f16_b44a.exr");
217 }
218
219 +#[ignore]
220 #[test]
221 fn compare_png_to_pxr24_f16() {
222 expect_eq_png("f16_pxr24.exr");
223 }
224
225
226 +#[ignore]
227 #[test]
228 fn compare_png_to_uncompressed_f32() {
229 expect_eq_png("f32_uncompressed.exr");
230 }
231
232 +#[ignore]
233 #[test]
234 fn compare_png_to_piz_f32() {
235 expect_eq_png("f32_piz.exr");
236 }
237
238 +#[ignore]
239 #[test]
240 fn compare_png_to_rle_f32() {
241 expect_eq_png("f32_rle.exr");
242 }
243
244 +#[ignore]
245 #[test]
246 fn compare_png_to_zip_f32() {
247 expect_eq_png("f32_zip.exr");
248 }
249
250 +#[ignore]
251 #[test]
252 fn compare_png_to_dwaa_f32() {
253 expect_eq_png("f32_dwaa.exr");
254 }
255
256 +#[ignore]
257 #[test]
258 fn compare_png_to_pxr24_f32() {
259 expect_eq_png("f32_pxr24.exr");
260 --- a/tests/fuzz.rs
261 +++ b/tests/fuzz.rs
262 @@ -25,6 +25,7 @@
263
264
265 /// Just don't panic.
266 +#[ignore]
267 #[test]
268 pub fn fuzzed(){
269 for ref file in exr_files("tests/images/fuzzed", false) {
270 @@ -37,6 +38,7 @@
271 }
272
273 /// Require an error but no panic.
274 +#[ignore]
275 #[test]
276 pub fn damaged(){
277 let mut passed = true;
278 --- a/tests/roundtrip.rs
279 +++ b/tests/roundtrip.rs
280 @@ -16,6 +16,7 @@
281 use rayon::iter::ParallelIterator;
282 use exr::block::samples::IntoNativeSample;
283
284 +#[ignore]
285 #[test]
286 fn roundtrip_all_files_in_repository_x4(){
287 check_all_files_in_repo(|path|{
288 @@ -288,6 +289,7 @@
289 Ok(())
290 }
291
292 +#[ignore]
293 #[test]
294 fn roundtrip_pxr24() {
295 test_mixed_roundtrip_with_compression(Compression::PXR24)