Bump libdcp.
[libsub.git] / test / dcp_to_stl_binary_test.cc
index 3643a95a2deca3fda7f95e71de8b18fc0aac9b94..a461810830d8e83783587462bbc04bec52b7565e 100644 (file)
@@ -151,3 +151,53 @@ BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test5)
                "build/test/065d39ff-6723-4dbf-a94f-849cde82f5e1_sub.stl"
                );
 }
+
+BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test6)
+{
+       if (private_test.empty ()) {
+               return;
+       }
+
+       boost::filesystem::path p = private_test / "Paddington_FTR_FullSubs_DE_24fps.xml";
+       sub::write_stl_binary (
+               sub::collect<list<sub::Subtitle> > (sub::DCPReader(p).subtitles ()),
+               24,
+               sub::LANGUAGE_GERMAN,
+               "", "",
+               "", "",
+               "", "",
+               "300514", "300514", 0,
+               "GBR",
+               "",
+               "", "",
+               "build/test/Paddington_FTR_FullSubs_DE_24fps.stl"
+               );
+
+       check_file (
+               private_test / "Paddington_FTR_FullSubs_DE_24fps.stl",
+               "build/test/Paddington_FTR_FullSubs_DE_24fps.stl"
+               );
+}
+
+BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test7)
+{
+       boost::filesystem::path p = "test/data/test3.xml";
+       sub::write_stl_binary (
+               sub::collect<list<sub::Subtitle> > (sub::DCPReader(p).subtitles ()),
+               24,
+               sub::LANGUAGE_GERMAN,
+               "", "",
+               "", "",
+               "", "",
+               "300514", "300514", 0,
+               "GBR",
+               "",
+               "", "",
+               "build/test/test3.stl"
+               );
+
+       check_file (
+               "test/ref/test3.stl",
+               "build/test/test3.stl"
+               );
+}