2014-01-11 19:09:52 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
# T_420matroska_attachment_no_fileuid
|
2014-01-11 19:16:43 +00:00
|
|
|
describe "mkvmerge & mkvextract / Matroska files with attachments missing a FileUID"
|
|
|
|
|
|
|
|
file = "data/mkv/attachment-without-fileuid.mkv"
|
2014-01-11 19:30:22 +00:00
|
|
|
|
2014-01-11 19:16:43 +00:00
|
|
|
test_merge file
|
2014-01-11 19:30:22 +00:00
|
|
|
|
2014-01-11 19:16:43 +00:00
|
|
|
test "extraction" do
|
|
|
|
extract file, :mode => :attachments, 1 => tmp
|
|
|
|
hash_tmp
|
|
|
|
end
|
2014-01-11 19:30:22 +00:00
|
|
|
|
|
|
|
test "propedit" do
|
|
|
|
sys "cp #{file} #{tmp}"
|
2015-02-23 19:37:31 +00:00
|
|
|
propedit tmp, "--replace-attachment '=0:data/text/chap1.txt'"
|
2014-01-11 19:30:22 +00:00
|
|
|
hash_tmp
|
|
|
|
end
|