2014-03-10 19:22:12 +00:00
|
|
|
#!/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
|
2018-11-16 08:51:30 +00:00
|
|
|
extract(file, :mode => :chapters, :args => "-").
|
2014-03-10 19:22:12 +00:00
|
|
|
slice(0..-2).
|
|
|
|
join('').
|
|
|
|
md5
|
|
|
|
end
|
|
|
|
|
|
|
|
test "extraction via --redirect-output" do
|
2014-09-28 13:43:53 +00:00
|
|
|
sys "../src/mkvextract --engage no_variable_data chapters #{file} --redirect-output #{tmp} > /dev/null 2> /dev/null"
|
2014-03-10 19:22:12 +00:00
|
|
|
hash_tmp
|
|
|
|
end
|