From d2652415ac57af25877228c3da38d0595cea0622 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 19 Feb 2021 16:15:58 +0100 Subject: [PATCH] tests: add test for non-ASCII characters in file names --- tests/results.txt | 1 + ...test-718non_ascii_characters_in_file_names.rb | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 tests/test-718non_ascii_characters_in_file_names.rb diff --git a/tests/results.txt b/tests/results.txt index 5994985be..1c6fc7c81 100644 --- a/tests/results.txt +++ b/tests/results.txt @@ -563,3 +563,4 @@ T_714avi_video_aspect_ratio:bf7ff6867eb95995d978a98c4fd1923e-4331bdc2bccdb8b1fb2 T_715byte_swapped_ac3:05ac86b3a4d1f21c8b77fc787d7989a9:passed:20210207-115041:0.018538973 T_716X_hevc_parameter_sets_before_first_frame_differ_from_codecprivate:500a2ece86b5560e55806934d2bccce1:passed:20210218-194923:0.011528524 T_717bluray_identification:29c227f13e3f59d83b99524ac0611cc0-b618dd387524f0f89c1c5585fe78274b:passed:20210219-160953:0.122788019 +T_718non_ascii_characters_in_file_names:2ebcc8ab16429bde0266d3ef2c153942-7fe7f0e5c844223490a485ae127e8057-7535de2c43cbc270e2443220acb401eb-2a041e9b321d9271a5e8a3e612689995-c9063c52a0f2d62995c328a97fb88335-6cb00a6c0647b716e657969e666352f4-56f2c2819a732305da8ab040b706dce7-7535de2c43cbc270e2443220acb401eb-32751831418847d69442ffd5edb2103e-c9063c52a0f2d62995c328a97fb88335:passed:20210219-161442:0.12201246 diff --git a/tests/test-718non_ascii_characters_in_file_names.rb b/tests/test-718non_ascii_characters_in_file_names.rb new file mode 100755 index 000000000..8a1ed2418 --- /dev/null +++ b/tests/test-718non_ascii_characters_in_file_names.rb @@ -0,0 +1,16 @@ +#!/usr/bin/ruby -w + +# T_718non_ascii_characters_in_file_names +describe "mkvmerge & mkvextract / non-ASCII characters in file names" + +Dir.glob("data/filenames/*").sort.each do |file_name| + test_identify file_name + test_merge file_name + + if %r{mks$}.match(file_name) + test "extraction of #{file_name}" do + extract file_name, 0 => tmp + hash_tmp + end + end +end