X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Frecover_test.cc;h=63c611831ea69b98fbc273a3f1ed55f55e966349;hb=HEAD;hp=0288da1883e1c180c87fe2ab953a67f634b4dab9;hpb=ce73eaf7875a9a3326afcd839ad85eb95879c160;p=dcpomatic.git diff --git a/test/recover_test.cc b/test/recover_test.cc index 0288da188..63c611831 100644 --- a/test/recover_test.cc +++ b/test/recover_test.cc @@ -32,6 +32,7 @@ #include "lib/ffmpeg_content.h" #include "lib/video_content.h" #include "lib/ratio.h" +#include #include #include #include @@ -74,7 +75,7 @@ BOOST_AUTO_TEST_CASE (recover_test_2d) dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE }); - boost::filesystem::path const video = "build/test/recover_test_2d/video/185_2K_02543352c540f4b083bff3f1e309d4a9_24_100000000_P_S_0_1200000.mxf"; + boost::filesystem::path const video = "build/test/recover_test_2d/video/185_2K_4650f318cea570763a0c6411c8c098ce_24_100000000_P_S_L21_0_1200000.mxf"; boost::filesystem::copy_file ( video, "build/test/recover_test_2d/original.mxf" @@ -82,7 +83,16 @@ BOOST_AUTO_TEST_CASE (recover_test_2d) boost::filesystem::resize_file (video, 2 * 1024 * 1024); - make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE }); + make_and_verify_dcp( + film, + { + dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, + dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE + }, + true, + /* We end up with two CPLs in this directory, which Clairmeta gives an error for */ + false + ); auto A = make_shared("build/test/recover_test_2d/original.mxf"); auto B = make_shared(video); @@ -108,7 +118,7 @@ BOOST_AUTO_TEST_CASE (recover_test_3d, * boost::unit_test::depends_on("recover_t make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE }); - boost::filesystem::path const video = "build/test/recover_test_3d/video/185_2K_70e6661af92ae94458784c16a21a9748_24_100000000_P_S_3D_0_96000.mxf"; + boost::filesystem::path const video = "build/test/recover_test_3d/video/185_2K_60a75a531ca9546bdd513163117e2214_24_100000000_P_S_L21_3D_0_96000.mxf"; boost::filesystem::copy_file ( video, @@ -117,7 +127,15 @@ BOOST_AUTO_TEST_CASE (recover_test_3d, * boost::unit_test::depends_on("recover_t boost::filesystem::resize_file (video, 2 * 1024 * 1024); - make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE }); + make_and_verify_dcp( + film, + { + dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE + }, + true, + /* We end up with two CPLs in this directory, which Clairmeta gives an error for */ + false + ); auto A = make_shared("build/test/recover_test_3d/original.mxf"); auto B = make_shared(video); @@ -144,7 +162,7 @@ BOOST_AUTO_TEST_CASE (recover_test_2d_encrypted, * boost::unit_test::depends_on( make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE }); boost::filesystem::path const video = - "build/test/recover_test_2d_encrypted/video/185_2K_02543352c540f4b083bff3f1e309d4a9_24_100000000_Eeafcb91c9f5472edf01f3a2404c57258_S_0_1200000.mxf"; + "build/test/recover_test_2d_encrypted/video/185_2K_4650f318cea570763a0c6411c8c098ce_24_100000000_Eeafcb91c9f5472edf01f3a2404c57258_S_L21_0_1200000.mxf"; boost::filesystem::copy_file ( video, @@ -153,7 +171,15 @@ BOOST_AUTO_TEST_CASE (recover_test_2d_encrypted, * boost::unit_test::depends_on( boost::filesystem::resize_file (video, 2 * 1024 * 1024); - make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE }); + make_and_verify_dcp( + film, + { + dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE + }, + true, + /* We end up with two CPLs in this directory, which Clairmeta gives an error for */ + false + ); auto A = make_shared("build/test/recover_test_2d_encrypted/original.mxf"); A->set_key (film->key ());