mkvtoolnix/tests/test-0426extract_write_bom_only_once.rb

17 lines
469 B
Ruby
Raw Normal View History

#!/usr/bin/ruby -w
# T_426extract_write_bom_only_once
file = "data/mkv/complex.mkv"
describe "mkvextract / write BOMs only once with --redirect-output"
test "extraction via shell redirection" do
extract(file, :mode => :chapters, :args => "-").
slice(0..-2).
join('').
md5
end
test "extraction via --redirect-output" do
sys "../src/mkvextract --engage no_variable_data chapters #{file} --redirect-output #{tmp} > /dev/null 2> /dev/null"
hash_tmp
end