diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-13 00:30:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-15 13:44:42 +0100 |
| commit | b5abb07ea62e5f4708c57b6f888101d3d3434aa8 (patch) | |
| tree | 81ffe1e038c575e386b627f558d1e93c24d83454 /test/map_cli_test.cc | |
| parent | 98a861ec8744137b0f641f9bc13bc1a9a7fa2fc6 (diff) | |
Copy Interop PNG subtitle files correctly (#2640).
Diffstat (limited to 'test/map_cli_test.cc')
| -rw-r--r-- | test/map_cli_test.cc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/map_cli_test.cc b/test/map_cli_test.cc index a4056dc46..5505a197b 100644 --- a/test/map_cli_test.cc +++ b/test/map_cli_test.cc @@ -542,3 +542,38 @@ BOOST_AUTO_TEST_CASE(map_uses_config_for_issuer_and_creator) BOOST_CHECK(pkl.string_child("Creator") == "Fred"); } + +BOOST_AUTO_TEST_CASE(map_handles_interop_png_subs) +{ + string const name = "map_handles_interop_png_subs"; + auto arrietty = content_factory(TestPaths::private_data() / "arrietty_JP-EN.mkv")[0]; + auto film = new_test_film2(name + "_input", { arrietty }); + film->set_interop(true); + arrietty->set_trim_end(dcpomatic::ContentTime::from_seconds(110)); + arrietty->text[0]->set_use(true); + make_and_verify_dcp( + film, + { + dcp::VerificationNote::Code::INVALID_SUBTITLE_FIRST_TEXT_TIME, + dcp::VerificationNote::Code::MISSING_SUBTITLE_LANGUAGE, + dcp::VerificationNote::Code::INVALID_STANDARD + }); + + auto const out = boost::filesystem::path("build") / "test" / (name + "_output"); + + vector<string> const args = { + "map_cli", + "-o", out.string(), + "-d", film->dir(film->dcp_name()).string(), + find_cpl(film->dir(film->dcp_name())).string() + }; + + boost::filesystem::remove_all(out); + + vector<string> output_messages; + auto error = run(args, output_messages); + BOOST_CHECK(!error); + + verify_dcp(out, { dcp::VerificationNote::Code::INVALID_STANDARD }); +} + |
