mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
dfe4226c27
Otherwise the test will fail if /bin/sh is a more POSIXly strict shell like dash as Ruby uses /bin/sh and not the current user's login shell.
19 lines
480 B
Ruby
Executable File
19 lines
480 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# 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).
|
|
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
|