mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
Added a test for the chapter handling during splitting (see commit 2869 and Anthill bug 122).
This commit is contained in:
parent
31bd52a95b
commit
223e1a2613
@ -56,3 +56,4 @@ T_206X_vobsub:1871f1e7e83dc90ba918a1337bc8eb30-287d40b353664d122f12dfeae3c84888-
|
||||
T_207segmentinfo:6f78ae296efa17b704ceca71de9ff728:passed:20050211-234856
|
||||
T_208cat_and_splitting:55c3d406e2b4f793f7d0e1f0547d66b3-2d5670d74da87a4ed48e00720fd8c16f:passed:20050306-152640
|
||||
T_209ac3misdeetected_as_mpeges:173dc3a17a1d74b1a1ee6d6ea65302ba:passed:20050315-092851
|
||||
T_210splitting_and_chapters:01e844df443f35ab9221f8db4dd91cc0-6f1872c33fa82197ee29ab1651a43edf-6051575a530c2097cce6668b30e0c17e-d1bd8d5a9333a9b660bc25a4466704d5:passed:20050406-165104
|
||||
|
38
tests/test-210splitting_and_chapters.rb
Normal file
38
tests/test-210splitting_and_chapters.rb
Normal file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/ruby -w
|
||||
|
||||
class T_210splitting_and_chapters < Test
|
||||
def description
|
||||
return "mkvmerge / splitting and chapters / in(AVI)"
|
||||
end
|
||||
|
||||
def run
|
||||
merge(tmp + "-%03d ", "--split-max-files 2 --split 4m data/avi/v.avi " +
|
||||
"--chapters data/text/shortchaps.txt")
|
||||
if (!FileTest.exist?(tmp + "-001"))
|
||||
error("First split file does not exist.")
|
||||
end
|
||||
if (!FileTest.exist?(tmp + "-002"))
|
||||
File.unlink(tmp + "-001")
|
||||
error("Second split file does not exist.")
|
||||
end
|
||||
hash = hash_file(tmp + "-001") + "-" + hash_file(tmp + "-002")
|
||||
File.unlink(tmp + "-001")
|
||||
File.unlink(tmp + "-002")
|
||||
|
||||
merge(tmp + "-%03d ", "--split-max-files 2 --split 4m data/avi/v.avi " +
|
||||
"--chapters data/text/shortchaps.txt --link")
|
||||
if (!FileTest.exist?(tmp + "-001"))
|
||||
error("First split file does not exist.")
|
||||
end
|
||||
if (!FileTest.exist?(tmp + "-002"))
|
||||
File.unlink(tmp + "-001")
|
||||
error("Second split file does not exist.")
|
||||
end
|
||||
hash += "-" + hash_file(tmp + "-001") + "-" + hash_file(tmp + "-002")
|
||||
File.unlink(tmp + "-001")
|
||||
File.unlink(tmp + "-002")
|
||||
|
||||
return hash
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user