2004-08-22 14:28:12 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
class T_019attachments2 < Test
|
2004-08-25 17:23:07 +00:00
|
|
|
def description
|
|
|
|
return "mkvmerge / attachments and splitting / in(*)"
|
2004-08-22 14:28:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
2004-08-30 22:17:55 +00:00
|
|
|
merge(tmp + "-%03d", "data/avi/v.avi --split-max-files 2 --split 4m " +
|
2004-08-22 14:28:12 +00:00
|
|
|
"--attachment-description dummy --attachment-mime-type " +
|
2004-08-30 22:17:55 +00:00
|
|
|
"text/plain --attach-file data/textsubs/vde.srt")
|
2004-08-22 14:28:12 +00:00
|
|
|
hash = hash_file(tmp + "-001") + "-" + hash_file(tmp + "-002")
|
|
|
|
File.unlink(tmp + "-001")
|
|
|
|
File.unlink(tmp + "-002")
|
2004-08-30 22:17:55 +00:00
|
|
|
merge(tmp + "-%03d", "data/avi/v.avi --split-max-files 2 --split 4m " +
|
2004-08-22 14:28:12 +00:00
|
|
|
"--attachment-description dummy --attachment-mime-type " +
|
2004-08-30 22:17:55 +00:00
|
|
|
"text/plain --attach-file-once data/textsubs/vde.srt")
|
2004-08-22 14:28:12 +00:00
|
|
|
hash += "-" + hash_file(tmp + "-001") + "-" + hash_file(tmp + "-002")
|
|
|
|
File.unlink(tmp + "-001")
|
|
|
|
File.unlink(tmp + "-002")
|
|
|
|
|
|
|
|
return hash
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|