mkvtoolnix/tests/test-0205X_cuesheets.rb

18 lines
524 B
Ruby
Raw Normal View History

#!/usr/bin/ruby -w
2021-07-07 14:06:32 +00:00
class T_0205X_cuesheets < Test
def description
return "mkvextract / cue sheets / in(MKV)"
end
def run
2007-07-04 14:40:52 +00:00
merge("#{tmp}-src", "data/simple/v.mp3 --chapters data/text/cuewithtags2.cue")
sys("../src/mkvextract cuesheet #{tmp}-src --engage no_variable_data > #{tmp} 2>/dev/null")
hash = hash_tmp(false)
sys("../src/mkvextract tracks #{tmp}-src --engage no_variable_data --cuesheet 0:#{tmp} > /dev/null 2>/dev/null")
hash += "-" + hash_tmp("#{tmp}.cue")
return hash
end
end