2019-11-03 12:18:59 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
# T_675mp4_cover
|
|
|
|
describe "mkvmerge / reading cover art from MP4s"
|
|
|
|
test_merge "data/alac/othertest-itunes.m4a", :args => "--no-attachments"
|
|
|
|
test_merge "data/alac/othertest-itunes.m4a", :keep_tmp => true
|
|
|
|
test "checksum" do
|
|
|
|
extract tmp, 1 => "#{tmp}-att1", :mode => :attachments
|
|
|
|
|
2019-11-08 15:12:26 +00:00
|
|
|
expected_md5 = "060170d57bac3c83175be67abc289b27"
|
2019-11-03 12:18:59 +00:00
|
|
|
actual_md5 = md5("#{tmp}-att1")
|
|
|
|
|
|
|
|
[ expected_md5, actual_md5, expected_md5 == actual_md5 ? "true" : "false" ].join("+")
|
|
|
|
end
|
2019-11-08 15:52:26 +00:00
|
|
|
|
|
|
|
test_merge "data/mp4/3covers.mp4"
|