X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2F4k_test.cc;h=e09aeeb5c4882912f7c0c8feb813537e02ba8542;hp=033796ab23d2e65cc58c5461ec6316765a3eb95f;hb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05 diff --git a/test/4k_test.cc b/test/4k_test.cc index 033796ab2..e09aeeb5c 100644 --- a/test/4k_test.cc +++ b/test/4k_test.cc @@ -18,8 +18,11 @@ */ +/** @defgroup completedcp Complete builds of DCPs */ + /** @file test/4k_test.cc * @brief Run a 4K encode from a simple input. + * @ingroup completedcp * * The output is checked against test/data/4k_test. */ @@ -30,25 +33,25 @@ #include "lib/dcp_content_type.h" #include "lib/video_content.h" #include "lib/ratio.h" +#include "lib/dcpomatic_log.h" #include "test.h" -using boost::shared_ptr; +using std::shared_ptr; BOOST_AUTO_TEST_CASE (fourk_test) { shared_ptr film = new_test_film ("4k_test"); + LogSwitcher ls (film->log()); film->set_name ("4k_test"); - shared_ptr c (new FFmpegContent (film, "test/data/test.mp4")); + shared_ptr c (new FFmpegContent("test/data/test.mp4")); film->set_resolution (RESOLUTION_4K); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR")); film->set_container (Ratio::from_id ("185")); film->examine_and_add_content (c); - wait_for_jobs (); - - c->video->set_scale (VideoContentScale (Ratio::from_id ("185"))); + BOOST_REQUIRE (!wait_for_jobs()); film->make_dcp (); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); boost::filesystem::path p (test_film_dir ("4k_test")); p /= film->dcp_name ();