X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Fdcp_subtitle_test.cc;h=314b214f2acf5ccc4f576c32c4d0c6661f30d8e4;hp=95fa7d1ec7eaf2d6844892ac9b9d1ddf1d8ed258;hb=895e908f7dcc8deb9e6a333d3d6b3a92aec2dc09;hpb=cb1dfa9ec09af2abf6d10e4bf2764476db83841b diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index 95fa7d1ec..314b214f2 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -31,16 +31,23 @@ using std::cout; using boost::shared_ptr; -/** Test load of very simple DCP subtitle file */ +/** Test pass-through of a very simple DCP subtitle file */ BOOST_AUTO_TEST_CASE (dcp_subtitle_test) { shared_ptr film = new_test_film ("dcp_subtitle_test"); film->set_container (Ratio::from_id ("185")); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); film->set_name ("frobozz"); + film->set_burn_subtitles (false); shared_ptr content (new DCPSubtitleContent (film, "test/data/dcp_sub.xml")); film->examine_and_add_content (content); wait_for_jobs (); BOOST_CHECK_EQUAL (content->full_length(), DCPTime::from_seconds (2)); + + content->set_use_subtitles (true); + film->make_dcp (); + wait_for_jobs (); + + check_dcp ("test/data/dcp_subtitle_test", film->dir (film->dcp_name ())); }