mkvtoolnix/tests/test-205X_cuesheets.rb
2010-06-19 12:38:55 +02:00

18 lines
509 B
Ruby

#!/usr/bin/ruby -w
class T_205X_cuesheets < Test
def description
return "mkvextract / cue sheets / in(MKV)"
end
def run
merge("#{tmp}-src", "data/simple/v.mp3 --chapters data/text/cuewithtags2.cue")
sys("../src/mkvextract cuesheet #{tmp}-src --no-variable-data > #{tmp} 2>/dev/null")
hash = hash_tmp(false)
sys("../src/mkvextract tracks #{tmp}-src --no-variable-data --cuesheet 1:#{tmp} > /dev/null 2>/dev/null")
hash += "-" + hash_tmp("#{tmp}.cue")
return hash
end
end