mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-28 05:45:36 +00:00
764bb7f95b
Fixes #737.
26 lines
970 B
Ruby
26 lines
970 B
Ruby
#!/usr/bin/ruby -w
|
|
|
|
# T_359split_parts
|
|
describe "mkvmerge / --split parts:..."
|
|
|
|
test "data/avi/v-h264-aac.avi two output files" do
|
|
merge "--split parts:20s-30s,-40s data/avi/v-h264-aac.avi", :output => "#{tmp}-%02d"
|
|
result = [ hash_file("#{tmp}-01"), hash_file("#{tmp}-02"), File.exist?("#{tmp}-03") ? "bad" : "ok" ].join('+')
|
|
unlink_tmp_files
|
|
result
|
|
end
|
|
|
|
test "data/avi/v-h264-aac.avi one output file" do
|
|
merge "--split parts:20s-30s,+40s-50s data/avi/v-h264-aac.avi", :output => "#{tmp}-%02d"
|
|
result = [ hash_file("#{tmp}-01"), File.exist?("#{tmp}-02") ? fail("second file should not exist") : "ok" ].join('+')
|
|
unlink_tmp_files
|
|
result
|
|
end
|
|
|
|
test "data/avi/v-h264-aac.avi one output file, starting at 00:00:00" do
|
|
merge "--split parts:-30s,+40s-50s data/avi/v-h264-aac.avi", :output => "#{tmp}-%02d"
|
|
result = [ hash_file("#{tmp}-01"), File.exist?("#{tmp}-02") ? fail("second file should not exist") : "ok" ].join('+')
|
|
unlink_tmp_files
|
|
result
|
|
end
|