From 5f4fed93bbd469067d825de67f09c71d45a7d2cc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Jan 2018 21:58:59 +0000 Subject: [PATCH] Add another 3D test. --- test/threed_test.cc | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/test/threed_test.cc b/test/threed_test.cc index a41defe8f..cdf9a5304 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -35,6 +35,7 @@ using std::cout; using boost::shared_ptr; +/** Basic sanity check of 3D_LEFT_RIGHT */ BOOST_AUTO_TEST_CASE (threed_test1) { shared_ptr film = new_test_film ("threed_test1"); @@ -55,7 +56,7 @@ BOOST_AUTO_TEST_CASE (threed_test1) BOOST_REQUIRE (!wait_for_jobs ()); } -/** Basic sanity check of 3D-alternate; at the moment this is just to make sure +/** Basic sanity check of 3D_ALTERNATE; at the moment this is just to make sure * that such a transcode completes without error. */ BOOST_AUTO_TEST_CASE (threed_test2) @@ -77,3 +78,25 @@ BOOST_AUTO_TEST_CASE (threed_test2) BOOST_REQUIRE (!wait_for_jobs ()); } + +/** Basic sanity check of 3D_LEFT and 3D_RIGHT; at the moment this is just to make sure + * that such a transcode completes without error. + */ +BOOST_AUTO_TEST_CASE (threed_test3) +{ + shared_ptr film = new_test_film2 ("threed_test3"); + shared_ptr L (new FFmpegContent (film, "test/data/test.mp4")); + film->examine_and_add_content (L); + shared_ptr R (new FFmpegContent (film, "test/data/test.mp4")); + film->examine_and_add_content (R); + 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 ()); +} -- 2.30.2