tests: add tests for sample files from bug 1096

Together with the changes in libEBML and libMatroska this is the last
commit related to #1096; therefore: fixes #1096.
This commit is contained in:
Moritz Bunkus 2014-12-20 17:42:56 +01:00
parent 1f5356707a
commit 1ed73349c5
2 changed files with 17 additions and 7 deletions

View File

@ -294,4 +294,4 @@ T_445teletext_subs_missing_second_line:3ae84ffa0e4d96fa0d3ffd76ff06d956:passed:2
T_446mkvinfo_output:c85f150aecd50e5fcdafd78884feda5c-67c709937345391807d6842ac5221e4e-3e3db323b51cd44990ba28abfca53b1c-369ec6054e4171c9125b1d576880522a:passed:20141216-165433:2.799686224
T_447mkvinfo_rounded_timecodes:373f7a58724d15beb41dbc1f809351b5-be742d4b69c9da8746c869ce68378b1a-40400a7a5b44a88ef791a3e57d0a5500:passed:20141216-172642:1.712081143
T_448mpeg_ts_with_hevc:eae8d6e24e1c99ed070b4aec351502f1:passed:20141216-181650:1.133097273
T_449segfaults_assertions:error-error-04aa38adf31451c85a19f490ca040dd8-e5484c528a96c5f3fd678ea6bd99a8f2-f3b5f64396c7d3907d5d81a2fdc3f077:passed:20141219-195127:0.251063917
T_449segfaults_assertions:error-error-04aa38adf31451c85a19f490ca040dd8-e5484c528a96c5f3fd678ea6bd99a8f2-a9e6c30b9ad3de6ee52fbfbcad26b7ea-f3b5f64396c7d3907d5d81a2fdc3f077-error-error-91eca98ea8df1f307644d5d17d8f0f95-36602f6d1d981cd429f54a6a39b023d8-91eca98ea8df1f307644d5d17d8f0f95-e5484c528a96c5f3fd678ea6bd99a8f2-e5484c528a96c5f3fd678ea6bd99a8f2-f89d13bdea53445e67c78c042f7f783e-565d2ce6866560056a2e929279f88e8e-f89d13bdea53445e67c78c042f7f783e:passed:20141219-195127:0.830949441

View File

@ -10,10 +10,20 @@ test_merge "#{dir}/1089-2.mkv", :exit_code => :error
test_merge "#{dir}/1089-3.mkv"
test_info "#{dir}/1089-1.mkv", :args => "-v -v"
# commented out because currently memory is allocated by not read to
# fully, therefore its content is still random. Has to be fixed in
# libmatroska/libebml.
#test_info "#{dir}/1089-2.mkv", :args => "-v -v"
test "1089-2.mkv" do
out = info "#{dir}/1089-2.mkv", :args => "-v -v", :output => :return
out.join("\n").gsub(/\(0x.*?\)/, 'xxx').md5
end
test_info "#{dir}/1089-3.mkv", :args => "-v -v"
test_merge "#{dir}/1096-id:000000,sig:06,src:000000,op:flip1,pos:0.mkv", :exit_code => :error
test_merge "#{dir}/1096-id:000001,sig:06,src:000000,op:flip1,pos:0.mkv", :exit_code => :error
test_merge "#{dir}/1096-id:000002,sig:06,src:000000,op:flip2,pos:582.mkv"
test_merge "#{dir}/1096-id:000003,sig:06,src:000000,op:flip2,pos:606.mkv"
test_merge "#{dir}/1096-id:000004,sig:06,src:000000,op:flip4,pos:582.mkv"
test_info "#{dir}/1096-id:000000,sig:06,src:000000,op:flip1,pos:0.mkv", :args => "-v -v"
test_info "#{dir}/1096-id:000001,sig:06,src:000000,op:flip1,pos:0.mkv", :args => "-v -v"
test_info "#{dir}/1096-id:000002,sig:06,src:000000,op:flip2,pos:582.mkv", :args => "-v -v"
test_info "#{dir}/1096-id:000003,sig:06,src:000000,op:flip2,pos:606.mkv", :args => "-v -v"
test_info "#{dir}/1096-id:000004,sig:06,src:000000,op:flip4,pos:582.mkv", :args => "-v -v"