diff --git a/crates/ec-h264/tests/conformance.rs b/crates/ec-h264/tests/conformance.rs index 19750f0d..67a04848 100644 --- a/crates/ec-h264/tests/conformance.rs +++ b/crates/ec-h264/tests/conformance.rs @@ -1401,9 +1401,6 @@ fn switching_slices_are_refused_by_name() { } } -// --------------------------------------------------------------------------- -// Real library: the files actually on this machine, not fixtures. -// --------------------------------------------------------------------------- /// Extract the video elementary stream of a real file as Annex B. fn extract_annexb(src: &Path, dst: &Path, frames: usize) -> bool { diff --git a/crates/ec-h264/tests/it/high422.rs b/crates/ec-h264/tests/it/high422.rs index 25aea858..037b55ed 100644 --- a/crates/ec-h264/tests/it/high422.rs +++ b/crates/ec-h264/tests/it/high422.rs @@ -3,8 +3,6 @@ //! with B-frames, CABAC and CAVLC, the 8x8 transform, weighted prediction, //! scaling matrices, chroma QP offsets, several slices, progressive and //! MBAFF, at 8 and 10 bits. -//! -//! opt-in: set `EC_H264_HI422_HD=1` (the lane gate does). use std::path::{Path, PathBuf}; @@ -365,13 +363,9 @@ fn x264_hi422_mbaff() { sweep(&cases); } -/// 1920x1080 intra and long-GOP, progressive and MBAFF (opt-in, slow). +/// 1920x1080 intra and long-GOP, progressive and MBAFF (slow). #[test] fn x264_hi422_hd() { - if std::env::var_os("EC_H264_HI422_HD").is_none() { - eprintln!("SKIP x264_hi422_hd: set EC_H264_HI422_HD=1"); - return; - } sweep(&[ case("hd-i-cabac", "testsrc2", "1920x1080", 2, "keyint=1"), case( diff --git a/crates/ec-h264/tests/it/high422_jvt.rs b/crates/ec-h264/tests/it/high422_jvt.rs index 70b8f6cb..e05fe4b1 100644 --- a/crates/ec-h264/tests/it/high422_jvt.rs +++ b/crates/ec-h264/tests/it/high422_jvt.rs @@ -99,12 +99,6 @@ fn jvt_hi422_vectors_bit_exact() { let mut exact = Vec::new(); for path in &list { let name = path.file_stem().unwrap().to_string_lossy().to_string(); - if cfg!(debug_assertions) - && matches!(name.as_str(), "Hi422FREXT16_SONY_A" | "Hi422FREXT17_SONY_A") - { - eprintln!("SKIP {name}: 1920x1088 field stream, release builds only"); - continue; - } let bytes = std::fs::read(path).unwrap(); let (ours, format) = match decode_all(&bytes) { Ok(v) => v, diff --git a/crates/ec-h264/tests/it/high444.rs b/crates/ec-h264/tests/it/high444.rs index f001223e..b37900f9 100644 --- a/crates/ec-h264/tests/it/high444.rs +++ b/crates/ec-h264/tests/it/high444.rs @@ -9,8 +9,6 @@ //! on the luma plane against ffmpeg's `gray` / `gray10le`; chroma must be 128, //! or 512 at 10 bits). Separate colour planes cannot be written by x264; the //! JVT vectors (`high444_jvt.rs`) cover them. -//! -//! set `EC_H264_HI444_HD=1`. use std::path::{Path, PathBuf}; @@ -604,13 +602,9 @@ fn x264_monochrome_mbaff_and_lossless() { sweep("gray MBAFF / lossless", &cases); } -/// 1280x720 (opt-in, slow). +/// 1280x720 (slow). #[test] fn x264_hi444_hd() { - if std::env::var_os("EC_H264_HI444_HD").is_none() { - eprintln!("SKIP x264_hi444_hd: set EC_H264_HI444_HD=1"); - return; - } let base = [ case("hd-i-cabac", "testsrc2", "1280x720", 2, "keyint=1"), case( diff --git a/crates/ec-h264/tests/it/high444_jvt.rs b/crates/ec-h264/tests/it/high444_jvt.rs index 3b541d46..02962b79 100644 --- a/crates/ec-h264/tests/it/high444_jvt.rs +++ b/crates/ec-h264/tests/it/high444_jvt.rs @@ -212,10 +212,6 @@ fn jvt_hi444_vectors_bit_exact() { let mut summary = Vec::new(); for path in &list { let name = path.file_stem().unwrap().to_string_lossy().to_string(); - if cfg!(debug_assertions) && std::fs::metadata(path).map_or(0, |m| m.len()) > 2_000_000 { - eprintln!("SKIP {name}: large stream, release builds only"); - continue; - } let bytes = std::fs::read(path).unwrap(); let (ours, format) = match decode_all(&bytes) { Ok((f, fmt)) if !f.is_empty() => (f, fmt), @@ -227,7 +223,6 @@ fn jvt_hi444_vectors_bit_exact() { Err(e) if e.to_string().contains("FMO") => { // The Sejong Univ. streams use slice groups, which this // decoder refuses by name (not part of this lane). - eprintln!("SKIP {name}: {e}"); summary.push(format!("{name} fmo-refused")); continue; } diff --git a/crates/ec-h264/tests/it/mbaff_x264.rs b/crates/ec-h264/tests/it/mbaff_x264.rs index 302433d6..9084d4fd 100644 --- a/crates/ec-h264/tests/it/mbaff_x264.rs +++ b/crates/ec-h264/tests/it/mbaff_x264.rs @@ -3,8 +3,6 @@ //! sources: CABAC and CAVLC, top and bottom field first, B-frames with //! spatial and temporal direct, weighted prediction, the 8x8 transform, //! several slices, and High 10. -//! -//! opt-in: set `EC_H264_MBAFF_HD=1` (the lane gate does). use std::path::{Path, PathBuf}; @@ -357,13 +355,9 @@ fn x264_mbaff_sd() { ]); } -/// 1920x1080: opt-in (`EC_H264_MBAFF_HD=1`). +/// 1920x1080. #[test] fn x264_mbaff_hd() { - if std::env::var_os("EC_H264_MBAFF_HD").is_none() { - eprintln!("SKIP 1080p MBAFF sweep: set EC_H264_MBAFF_HD=1"); - return; - } sweep(&[ case( "hd-cabac-tff", diff --git a/crates/ec-h265/tests/it/conformance_intra.rs b/crates/ec-h265/tests/it/conformance_intra.rs index 62b67df6..d9e1200a 100644 --- a/crates/ec-h265/tests/it/conformance_intra.rs +++ b/crates/ec-h265/tests/it/conformance_intra.rs @@ -47,9 +47,7 @@ fn streams() -> Vec { } } } - let Ok(dirs) = std::fs::read_dir(&root) else { - return Vec::new(); - }; + let dirs = std::fs::read_dir(&root).expect("fixture directory"); let mut dirs: Vec = dirs.filter_map(|e| e.ok().map(|e| e.path())).collect(); dirs.sort(); dirs.into_iter() diff --git a/crates/ec-h265/tests/it/conformance_rext.rs b/crates/ec-h265/tests/it/conformance_rext.rs index 55a994cc..ad752f0e 100644 --- a/crates/ec-h265/tests/it/conformance_rext.rs +++ b/crates/ec-h265/tests/it/conformance_rext.rs @@ -46,9 +46,7 @@ fn streams() -> Vec { } } } - let Ok(dirs) = std::fs::read_dir(&root) else { - return Vec::new(); - }; + let dirs = std::fs::read_dir(&root).expect("fixture directory"); let mut dirs: Vec = dirs.filter_map(|e| e.ok().map(|e| e.path())).collect(); dirs.sort(); dirs.into_iter() diff --git a/crates/ec-h265/tests/it/cu_syntax.rs b/crates/ec-h265/tests/it/cu_syntax.rs index cad63cec..29ff6133 100644 --- a/crates/ec-h265/tests/it/cu_syntax.rs +++ b/crates/ec-h265/tests/it/cu_syntax.rs @@ -23,9 +23,7 @@ fn streams() -> Vec { } } } - let Ok(dirs) = std::fs::read_dir(&root) else { - return Vec::new(); - }; + let dirs = std::fs::read_dir(&root).expect("fixture directory"); let mut dirs: Vec = dirs.filter_map(|e| e.ok().map(|e| e.path())).collect(); dirs.sort(); dirs.into_iter() diff --git a/crates/ec-h265/tests/it/dec_shell.rs b/crates/ec-h265/tests/it/dec_shell.rs index dfd31621..027386b4 100644 --- a/crates/ec-h265/tests/it/dec_shell.rs +++ b/crates/ec-h265/tests/it/dec_shell.rs @@ -310,9 +310,7 @@ fn streams() -> Vec { } } } - let Ok(dirs) = std::fs::read_dir(&root) else { - return Vec::new(); - }; + let dirs = std::fs::read_dir(&root).expect("fixture directory"); let mut dirs: Vec = dirs.filter_map(|e| e.ok().map(|e| e.path())).collect(); dirs.sort(); dirs.into_iter() diff --git a/crates/ec-h265/tests/it/real_library.rs b/crates/ec-h265/tests/it/real_library.rs index 6c939b45..a2ca81bc 100644 --- a/crates/ec-h265/tests/it/real_library.rs +++ b/crates/ec-h265/tests/it/real_library.rs @@ -1,4 +1,3 @@ -//! //! Every file either decodes bit-exactly, is refused by name (a pixel format or //! a bit depth outside 4:2:0 8/10-bit, or a decoder refusal that says //! "unsupported"), or fails. A refusal is reported, not counted as a failure.