forge
Explore
Log in

Don't you dare go Hollow

The two real-file cases come off the manifest

Browse files at this commit

455e3a69c801ac6502cf6a853dc0a3f41804fc71Ahmet Kaan GümüşParent: fb84e61
  • test
    • the two real-file cases come off the manifest
Show full message
🧪 test(audio): the two real-file cases come off the manifest

Both had a literal path baked into the source, and a placeholder is what
they were left with -- so each opened with a `!exists()` return and every
run skipped the only case it exists for: the 8-channel Opus import and the
seek that lands on its own second.

They now ask `engine::real_library::film` for `av1_opus_71` and
`av1_opus_51`, the same one-line gate the colour, PGS and dual-audio cases
use: the local manifest names the file, is gitignored, and its absence is a
skip line rather than a failure. `real_library.toml.example` grows the two
keys, described by shape.
crates/engine/tests/audio_decode.rsmodified+2 -6
@@ -348,13 +348,9 @@ fn seven_one_opus_folds_to_the_stereo_the_timeline_carries() {
348 /// test that cannot make it must say nothing rather than something false.348 /// test that cannot make it must say nothing rather than something false.
349 #[test]349 #[test]
350 fn his_seven_one_remux_imports_and_plays() {350 fn his_seven_one_remux_imports_and_plays() {
351- let film = PathBuf::from(351+ let Some(film) = engine::real_library::film("av1_opus_71") else {
352- "/path/to/a-real-av1-opus-7.1-film.mkv",
353- );
354- if !film.exists() {
355- eprintln!("skipped: {} is not on this machine", film.display());
356 return;352 return;
357- }353+ };
358 // The import gate itself: this is the call whose `Err` the app printed.354 // The import gate itself: this is the call whose `Err` the app printed.
359 let probe = AudioSession::probe(&film, 0)355 let probe = AudioSession::probe(&film, 0)
360 .expect("the 7.1 track no longer refuses the import")356 .expect("the 7.1 track no longer refuses the import")
crates/engine/tests/audio_seek.rsmodified+2 -6
@@ -195,13 +195,9 @@ fn chirp_second(meta: &engine::audio::AudioMeta, samples: impl Iterator<Item = f
195 /// library cannot be made by a machine that does not have it.195 /// library cannot be made by a machine that does not have it.
196 #[test]196 #[test]
197 fn a_seek_into_real_film_lands_on_the_second_it_asked_for() {197 fn a_seek_into_real_film_lands_on_the_second_it_asked_for() {
198- let film = PathBuf::from(198+ let Some(film) = engine::real_library::film("av1_opus_51") else {
199- "/path/to/a-real-av1-opus-5.1-film.mkv",
200- );
201- if !film.exists() {
202- eprintln!("skipped: {} is not on this machine", film.display());
203 return;199 return;
204- }200+ };
205 if std::process::Command::new("ffmpeg")201 if std::process::Command::new("ffmpeg")
206 .arg("-version")202 .arg("-version")
207 .stdout(std::process::Stdio::null())203 .stdout(std::process::Stdio::null())
real_library.toml.examplemodified+8 -0
@@ -18,3 +18,11 @@ h264_dual_audio = "/path/to/a-dual-audio-bluray-rip.mkv"
18 # A 4K Blu-ray x265 remux carrying four PGS subtitle tracks beside one18 # A 4K Blu-ray x265 remux carrying four PGS subtitle tracks beside one
19 # `S_TEXT/UTF8` one.19 # `S_TEXT/UTF8` one.
20 hevc_4k_pgs = "/path/to/a-4k-bluray-remux-with-pgs.mkv"20 hevc_4k_pgs = "/path/to/a-4k-bluray-remux-with-pgs.mkv"
21+
22+# A 2160p AV1 HDR10 remux whose main track is 8-channel Opus -- five Opus
23+# streams, three of them coupled -- beside two 5.1 commentary tracks.
24+av1_opus_71 = "/path/to/a-2160p-av1-opus-7.1-remux.mkv"
25+
26+# A feature-length 1080p AV1 remux with a 5.1 Opus track and a cue table: long
27+# enough to seek an hour into, which is where a Matroska landing goes wrong.
28+av1_opus_51 = "/path/to/a-1080p-av1-opus-5.1-remux.mkv"