Add a test.
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Feb 2019 00:29:07 +0000 (00:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Feb 2019 00:29:07 +0000 (00:29 +0000)
test/data
test/threed_test.cc

index da4182c..952b022 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit da4182cf952149727da9ee0b6cb0b2d638ee42d9
+Subproject commit 952b0221d897351f8c9e77ca71c684f220dd01ca
index f8a4e85..a9dd21c 100644 (file)
@@ -138,3 +138,23 @@ BOOST_AUTO_TEST_CASE (threed_test5)
 
        BOOST_REQUIRE (!wait_for_jobs ());
 }
+
+BOOST_AUTO_TEST_CASE (threed_test6)
+{
+       shared_ptr<Film> film = new_test_film2 ("threed_test6");
+       shared_ptr<FFmpegContent> L (new FFmpegContent("test/data/3dL.mp4"));
+       film->examine_and_add_content (L);
+       shared_ptr<FFmpegContent> R (new FFmpegContent("test/data/3dR.mp4"));
+       film->examine_and_add_content (R);
+       BOOST_REQUIRE (!wait_for_jobs());
+
+       L->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT);
+       R->video->set_frame_type (VIDEO_FRAME_TYPE_3D_RIGHT);
+
+       film->set_three_d (true);
+       film->make_dcp ();
+       film->write_metadata ();
+
+       BOOST_REQUIRE (!wait_for_jobs());
+       check_dcp ("test/data/threed_test6", film->dir(film->dcp_name()));
+}