From 42ebd462686e403711bed5fa4be23a498795754b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Jan 2024 15:29:12 +0100 Subject: Inspect all DCPs made during tests with ClairMeta. --- test/recover_test.cc | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'test/recover_test.cc') diff --git a/test/recover_test.cc b/test/recover_test.cc index 728d98941..63c611831 100644 --- a/test/recover_test.cc +++ b/test/recover_test.cc @@ -83,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); @@ -118,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); @@ -154,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 ()); -- cgit v1.2.3