diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-15 21:58:59 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-15 21:58:59 +0000 |
| commit | 5f4fed93bbd469067d825de67f09c71d45a7d2cc (patch) | |
| tree | 4440371bcb6a44f2110162de5a468a45db16e0dd /test/threed_test.cc | |
| parent | dd0ce84619450c62b74e22debd0e1060698488ae (diff) | |
Add another 3D test.
Diffstat (limited to 'test/threed_test.cc')
| -rw-r--r-- | test/threed_test.cc | 25 |
1 files changed, 24 insertions, 1 deletions
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> 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> film = new_test_film2 ("threed_test3"); + shared_ptr<FFmpegContent> L (new FFmpegContent (film, "test/data/test.mp4")); + film->examine_and_add_content (L); + shared_ptr<FFmpegContent> 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 ()); +} |
