mkvtoolnix/tests/test-253ui_language.rb

25 lines
603 B
Ruby

#!/usr/bin/ruby -w
class T_253ui_language < Test
def description
return "all / user interface languages"
end
def run
hashes = Array.new
%w{en_US de_DE ja_JP zh_CN zh_TW}.each do |language|
merge "/dev/null", "--ui-language #{language} data/avi/v.avi | sed -e 1d > #{tmp}-#{language}"
hashes << hash_file("#{tmp}-#{language}")
sys "../src/mkvinfo --ui-language #{language} data/mkv/complex.mkv > #{tmp}-#{language}"
hashes << hash_file("#{tmp}-#{language}")
end
sys "../src/mkvmerge --ui-language gnufudel", 2
return hashes.join "-"
end
end