From c3a14d46c3a5e8924eaa94e8be30f4d9ac3836c2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 31 Mar 2012 13:35:05 +0200 Subject: [PATCH] Add test case for splitting by parts --- tests/results.txt | 1 + tests/test-359split_parts.rb | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/test-359split_parts.rb diff --git a/tests/results.txt b/tests/results.txt index ace536120..585abbceb 100644 --- a/tests/results.txt +++ b/tests/results.txt @@ -204,3 +204,4 @@ T_355chapters:aff1c812e628ee6c1dc11f8b48d8b472-fe1f0f4bc6fea73176105ec2ed297fd5- T_356tags:50b0db97dc1c571a2ae5688614cb0a39-44bd89109f3414e90b84b58b73536133-2718d3a6e7d380df11d0bcdf176cfacf-52b632167e9dadb0779f239bf0c4b82a-ok-ok-ok-ok-ok-ok-ok-ok-ok-ok-ok-ok-ok:passed:20120324-121752:0.210298216 T_357segment_info:2d71cf1bd5f76518c50cd264c9bbca02-14d5941c82657b7b39cb9c1f93bf39b4-ok-ok-ok-ok-ok-ok-ok:passed:20120324-122844:0.171732152 T_358usf:ed5c3f4942642971dc7b7cc9ff2e1c07:passed:20120329-142144:0.03867509 +T_359split_parts:9957b93c496b1d21058c4dce51e11e9d-4b831937b1691f607a0afa96b3d5bc73-ok:passed:20120331-133448:0.290723102 diff --git a/tests/test-359split_parts.rb b/tests/test-359split_parts.rb new file mode 100644 index 000000000..53e3f1656 --- /dev/null +++ b/tests/test-359split_parts.rb @@ -0,0 +1,9 @@ +#!/usr/bin/ruby -w + +# T_359split_parts +describe "mkvmerge / --split parts:..." + +test "data/avi/v-h264-aac.avi" do + merge "--split parts:20s-30s,-40s data/avi/v-h264-aac.avi", :output => "#{tmp}-%02d" + [ hash_file("#{tmp}-01"), hash_file("#{tmp}-02"), File.exist?("#{tmp}-03") ? "bad" : "ok" ].join('-') +end