mkvtoolnix/tests/test-0273pgssup.rb

24 lines
450 B
Ruby
Raw Normal View History

2010-06-18 10:24:21 +00:00
#!/usr/bin/ruby -w
2021-07-07 14:06:32 +00:00
class T_0273pgssup < Test
2010-06-18 10:24:21 +00:00
def description
return "mkvmerge & mkvextract / PGS SUP files"
end
def run
hashes = Array.new
merge "data/subtitles/pgs/x.sup"
hashes << hash_tmp
merge "#{tmp}-1", "data/subtitles/pgs/x.sup"
merge "#{tmp}-2", "#{tmp}-1"
hashes << hash_file("#{tmp}-2")
xtr_tracks "#{tmp}-1", "0:#{tmp}-3"
2010-06-18 10:24:21 +00:00
hashes << hash_file("#{tmp}-3")
return hashes.join "-"
end
end