UI language test case: Split up into one test case per language

This commit is contained in:
Moritz Bunkus 2011-10-16 19:34:42 +02:00
parent 7baf8bccd8
commit 678d388cd2
16 changed files with 274 additions and 25 deletions

View File

@ -99,7 +99,6 @@ T_249mpeg2_no_codecprivate:3b68b55806e974f2aeaf19665a1f1d92:passed:20090531-1328
T_250tag_selection:f0f55b985f0be4a4b271f47ed92e8f62-2c2a54f534fca06efe05981d022070a6-b22d97ee522b50db77c8abc2cdf15af0-9314c66c777145dc566d4a47a5571fff-71f432d2ef9465794c0ad471017887c2-71f432d2ef9465794c0ad471017887c2-23d5c3955b59bbfe7278ca02c4659824:passed:20090531-205640:2.496974031
T_251vc1_truehd_eac3_from_evo:c511a94fdd16754716e43689b2369429:passed:20090606-220945:2.081741424
T_252native_mpeg4:8d91a365780d5208b3ad383b46354a44:passed:20090620-163119:10.611827616
T_253ui_language:1388dc8c723092ec1cc3f68b5cbad9ad-3182bfa8c7ef57b56185285fbd614c98-abfa59631d33b6b4c42f80278bbb3435-fe29d5dd8da942a9deb4aac92b2f0514-e4953e3eb96ee2b4747bb2772b0963be-2a71ac7431d13fff0f95345ae20b990c-dc3ef5c53c9ebf8181956b0604125e68-aa24f837fb33a036ba682ed27a53c535-c2c756ec4fd3c67057166e72b0fd2652-c1f64d8ae20baee5fd96efac1df1bf29-7d48d71211de61fa05f3a98b91126ba0-0f4de0099dce1d92052bfc01cc4f2dba-1388dc8c723092ec1cc3f68b5cbad9ad-3182bfa8c7ef57b56185285fbd614c98-4648ee0284e6df165a940332919d3265-0fdaccff6be58ce2b8aa2d25c9d4ae70-2f5de6701b4fb79cecd8806654a77c48-4fc9b34008f1904490a9deb33c9666a2-2e4f6f7c664b2fdeb2cd29d4a1e10736-6813f6eafd806afe6527981fad3cbf26-1388dc8c723092ec1cc3f68b5cbad9ad-3182bfa8c7ef57b56185285fbd614c98-07f5f84c216587bdf5e3893f917788b0-399cd00f7f8a16f553c448c97b560a70-c5a6fd4515ee3b18d39e76b29e103b8a-836878bf8118c2b708d4fcadd88245dc:passed:20090706-235831:6.934066359
T_254avi_with_subs:83a021026d102f8aea8ca760a56f293c-83a021026d102f8aea8ca760a56f293c-08c55e088b901e36e411b49f580112a8-5f6bb224635390784e23dbbb8d27bd03-c2064cb6ce72891bbbfc96ea5d0cb4a1:passed:20091025-104213:2.313283245
T_255aspect_ratio_display_dimensions:0[4254x815-4254x815-1212x2424-1800x360-3600x360]1[3600x360-3600x360-1212x2424-1800x360-3600x360]2[7200x360-7200x360-1212x2424-1800x360-3600x360]:passed:20091025-164606:1.594118813
T_256cropping_stereo_mode:0[S2-1-2-3-4]1[S1-5-6-7-8]:passed:20091025-204854:0.254589465
@ -151,3 +150,17 @@ T_301ts_pgssub:288073767e64ed273d1c7f528c673d25:passed:20110918-154732:1.2370274
T_302pat_pmt_only_once:073d3fe1f12db53521285ea4b5df8aed:passed:20110927-222121:0.240361843
T_303mpeg_ts_eac3_pmt_descriptor_tag_0x7a:5647f48b42ebb93f43d70523e08df7eb:passed:20111008-150823:2.078023996
T_304eac3_pes_private_but_no_pmt_descriptor_tag:4ed5e05b2f95f0cb75db433ed1040050:passed:20111009-113137:2.473216604
T_305ui_locale_en_US:23026ac2ed9767541e89f2261bcf8b60-3182bfa8c7ef57b56185285fbd614c98:passed:20111016-192531:0.723787568
T_306ui_locale_de_DE:23026ac2ed9767541e89f2261bcf8b60-fe29d5dd8da942a9deb4aac92b2f0514:passed:20111016-192531:0.803909505
T_307ui_locale_es_ES:23026ac2ed9767541e89f2261bcf8b60-2a71ac7431d13fff0f95345ae20b990c:passed:20111016-192531:0.995145312
T_308ui_locale_fr_FR:03d2f191389f01a33c1412691e499772-aa24f837fb33a036ba682ed27a53c535:passed:20111016-192531:0.966574348
T_309ui_locale_it_IT:23026ac2ed9767541e89f2261bcf8b60-c1f64d8ae20baee5fd96efac1df1bf29:passed:20111016-192531:0.667563832
T_310ui_locale_ja_JP:6d591c2e1ea9fb580fb75b7e8d85caaa-0f4de0099dce1d92052bfc01cc4f2dba:passed:20111016-192531:0.710400367
T_311ui_locale_lt_LT:23026ac2ed9767541e89f2261bcf8b60-3182bfa8c7ef57b56185285fbd614c98:passed:20111016-192531:0.637185456
T_312ui_locale_nl_NL:23026ac2ed9767541e89f2261bcf8b60-0fdaccff6be58ce2b8aa2d25c9d4ae70:passed:20111016-192532:0.75311402
T_313ui_locale_ru_RU:23026ac2ed9767541e89f2261bcf8b60-4fc9b34008f1904490a9deb33c9666a2:passed:20111016-192531:0.731477327
T_314ui_locale_tr_TR:23026ac2ed9767541e89f2261bcf8b60-6813f6eafd806afe6527981fad3cbf26:passed:20111016-192530:0.6961922
T_315ui_locale_uk_UA:23026ac2ed9767541e89f2261bcf8b60-3182bfa8c7ef57b56185285fbd614c98:passed:20111016-192532:0.612835327
T_316ui_locale_zh_CN:23026ac2ed9767541e89f2261bcf8b60-399cd00f7f8a16f553c448c97b560a70:passed:20111016-192532:0.719437777
T_317ui_locale_zh_TW:af26160704aa699ca03270813855ec7d-836878bf8118c2b708d4fcadd88245dc:passed:20111016-192531:0.705209719
T_318ui_locale_invalid:ok:passed:20111016-192531:0.044292216

View File

@ -1,24 +0,0 @@
#!/usr/bin/ruby -w
class T_253ui_language < Test
def description
return "all / user interface languages"
end
def run
hashes = Array.new
%w{en_US de_DE es_ES fr_FR it_IT ja_JP lt_LT nl_NL ru_RU tr_TR uk_UA zh_CN zh_TW}.each do |language|
merge "/dev/null", "--ui-language #{language} data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-#{language}"
hashes << hash_file("#{tmp}-#{language}")
sys "../src/mkvinfo --ui-language #{language} data/mkv/complex.mkv | head -n 2 > #{tmp}-#{language}"
hashes << hash_file("#{tmp}-#{language}")
end
sys "../src/mkvmerge --ui-language gnufudel", 2
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_305ui_locale_en_US < Test
def description
"mkvmerge / UI locale: en_US"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language en_US data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-en_US"
hashes << hash_file("#{tmp}-en_US")
sys "../src/mkvinfo --ui-language en_US data/mkv/complex.mkv | head -n 2 > #{tmp}-en_US"
hashes << hash_file("#{tmp}-en_US")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_306ui_locale_de_DE < Test
def description
"mkvmerge / UI locale: de_DE"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language de_DE data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-de_DE"
hashes << hash_file("#{tmp}-de_DE")
sys "../src/mkvinfo --ui-language de_DE data/mkv/complex.mkv | head -n 2 > #{tmp}-de_DE"
hashes << hash_file("#{tmp}-de_DE")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_307ui_locale_es_ES < Test
def description
"mkvmerge / UI locale: es_ES"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language es_ES data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-es_ES"
hashes << hash_file("#{tmp}-es_ES")
sys "../src/mkvinfo --ui-language es_ES data/mkv/complex.mkv | head -n 2 > #{tmp}-es_ES"
hashes << hash_file("#{tmp}-es_ES")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_308ui_locale_fr_FR < Test
def description
"mkvmerge / UI locale: fr_FR"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language fr_FR data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-fr_FR"
hashes << hash_file("#{tmp}-fr_FR")
sys "../src/mkvinfo --ui-language fr_FR data/mkv/complex.mkv | head -n 2 > #{tmp}-fr_FR"
hashes << hash_file("#{tmp}-fr_FR")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_309ui_locale_it_IT < Test
def description
"mkvmerge / UI locale: it_IT"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language it_IT data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-it_IT"
hashes << hash_file("#{tmp}-it_IT")
sys "../src/mkvinfo --ui-language it_IT data/mkv/complex.mkv | head -n 2 > #{tmp}-it_IT"
hashes << hash_file("#{tmp}-it_IT")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_310ui_locale_ja_JP < Test
def description
"mkvmerge / UI locale: ja_JP"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language ja_JP data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-ja_JP"
hashes << hash_file("#{tmp}-ja_JP")
sys "../src/mkvinfo --ui-language ja_JP data/mkv/complex.mkv | head -n 2 > #{tmp}-ja_JP"
hashes << hash_file("#{tmp}-ja_JP")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_311ui_locale_lt_LT < Test
def description
"mkvmerge / UI locale: lt_LT"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language lt_LT data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-lt_LT"
hashes << hash_file("#{tmp}-lt_LT")
sys "../src/mkvinfo --ui-language lt_LT data/mkv/complex.mkv | head -n 2 > #{tmp}-lt_LT"
hashes << hash_file("#{tmp}-lt_LT")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_312ui_locale_nl_NL < Test
def description
"mkvmerge / UI locale: nl_NL"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language nl_NL data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-nl_NL"
hashes << hash_file("#{tmp}-nl_NL")
sys "../src/mkvinfo --ui-language nl_NL data/mkv/complex.mkv | head -n 2 > #{tmp}-nl_NL"
hashes << hash_file("#{tmp}-nl_NL")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_313ui_locale_ru_RU < Test
def description
"mkvmerge / UI locale: ru_RU"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language ru_RU data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-ru_RU"
hashes << hash_file("#{tmp}-ru_RU")
sys "../src/mkvinfo --ui-language ru_RU data/mkv/complex.mkv | head -n 2 > #{tmp}-ru_RU"
hashes << hash_file("#{tmp}-ru_RU")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_314ui_locale_tr_TR < Test
def description
"mkvmerge / UI locale: tr_TR"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language tr_TR data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-tr_TR"
hashes << hash_file("#{tmp}-tr_TR")
sys "../src/mkvinfo --ui-language tr_TR data/mkv/complex.mkv | head -n 2 > #{tmp}-tr_TR"
hashes << hash_file("#{tmp}-tr_TR")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_315ui_locale_uk_UA < Test
def description
"mkvmerge / UI locale: uk_UA"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language uk_UA data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-uk_UA"
hashes << hash_file("#{tmp}-uk_UA")
sys "../src/mkvinfo --ui-language uk_UA data/mkv/complex.mkv | head -n 2 > #{tmp}-uk_UA"
hashes << hash_file("#{tmp}-uk_UA")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_316ui_locale_zh_CN < Test
def description
"mkvmerge / UI locale: zh_CN"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language zh_CN data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-zh_CN"
hashes << hash_file("#{tmp}-zh_CN")
sys "../src/mkvinfo --ui-language zh_CN data/mkv/complex.mkv | head -n 2 > #{tmp}-zh_CN"
hashes << hash_file("#{tmp}-zh_CN")
return hashes.join "-"
end
end

View File

@ -0,0 +1,19 @@
#!/usr/bin/ruby -w
class T_317ui_locale_zh_TW < Test
def description
"mkvmerge / UI locale: zh_TW"
end
def run
hashes = Array.new
merge "/dev/null", "--ui-language zh_TW data/avi/v.avi | head -n 2 | tail -n 1 > #{tmp}-zh_TW"
hashes << hash_file("#{tmp}-zh_TW")
sys "../src/mkvinfo --ui-language zh_TW data/mkv/complex.mkv | head -n 2 > #{tmp}-zh_TW"
hashes << hash_file("#{tmp}-zh_TW")
return hashes.join "-"
end
end

View File

@ -0,0 +1,13 @@
#!/usr/bin/ruby -w
class T_318ui_locale_invalid < Test
def description
"mkvmerge / UI locale: invalid"
end
def run
sys "../src/mkvmerge --ui-language gnufudel", 2
return "ok"
end
end