mkvtoolnix/tests/test-423deprecated_iso639_codes.rb
Moritz Bunkus ffb32a657b all: remove deprecated features
The features removed are:

* mkvmerge: the options `--identify-verbose` (and its counterpart
  `-I`), `--identify-for-gui`, `--identify-for-mmg` and
  `--identification-format verbose-text`
* all command line tools: the old, proprietary format used for option
  files
* all command line tools: support for passing command line options via the
  environment variables `MKVTOOLNIX_OPTIONS`, `MKVEXTRACT_OPTIONS`,
  `MKVINFO_OPTIONS`, `MKVMERGE_OPTIONS`, and `MKVPROPEDIT_OPTIONS`
2017-12-22 16:02:58 +01:00

18 lines
477 B
Ruby
Executable File

#!/usr/bin/ruby -w
codes = {
"iw" => "heb",
"scr" => "hrv",
"scc" => "srp",
"mol" => "rum",
}
describe "mkvmerge / deprecated ISO 639-1/2 codes"
codes.each do |deprecated_code, expected_code|
test_merge "data/subtitles/srt/vde.srt", :args => "--language 0:#{deprecated_code}", :keep_tmp => true
test "check code #{deprecated_code} => #{expected_code}" do
identify_json(tmp)["tracks"][0]["properties"]["language"] == expected_code ? "good" : "bad"
end
end