2009-07-06 22:18:54 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
class T_253ui_language < Test
|
|
|
|
def description
|
|
|
|
return "all / user interface languages"
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
hashes = Array.new
|
|
|
|
|
2011-06-14 08:18:10 +00:00
|
|
|
%w{en_US de_DE es_ES fr_FR it_IT ja_JP nl_NL ru_RU tr_TR uk_UA zh_CN zh_TW}.each do |language|
|
2011-03-22 09:03:02 +00:00
|
|
|
merge "/dev/null", "--ui-language #{language} data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-#{language}"
|
2009-07-06 22:18:54 +00:00
|
|
|
hashes << hash_file("#{tmp}-#{language}")
|
|
|
|
|
2011-03-22 09:03:02 +00:00
|
|
|
sys "../src/mkvinfo --ui-language #{language} data/mkv/complex.mkv | head -n 2 > #{tmp}-#{language}"
|
2009-07-06 22:18:54 +00:00
|
|
|
hashes << hash_file("#{tmp}-#{language}")
|
|
|
|
end
|
|
|
|
|
|
|
|
sys "../src/mkvmerge --ui-language gnufudel", 2
|
|
|
|
|
|
|
|
return hashes.join "-"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|