diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-14 22:50:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | cb9fe95c4fee9d97c88d3f044cceb514fa753abb (patch) | |
| tree | 99ad7a8dbcbbab55b4a1a39a3b84d70e1a8cc746 /test | |
| parent | a79574aab09f3908d228b715ebbc8a2ebb16f7fb (diff) | |
Bv2.1 8.1: CPL <AnnotationText> should be the same as <ContentTitleText>
Diffstat (limited to 'test')
| -rw-r--r-- | test/verify_test.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/verify_test.cc b/test/verify_test.cc index 98a28cbc..6ed6b092 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -1651,3 +1651,25 @@ BOOST_AUTO_TEST_CASE (verify_cpl_must_have_annotation_text) }); } + +BOOST_AUTO_TEST_CASE (verify_cpl_annotation_text_should_be_same_as_content_title_text) +{ + boost::filesystem::path const dir("build/test/verify_cpl_annotation_text_should_be_same_as_content_title_text"); + auto dcp = make_simple (dir); + dcp->write_xml (dcp::SMPTE); + BOOST_REQUIRE_EQUAL (dcp->cpls().size(), 1U); + + { + BOOST_REQUIRE (dcp->cpls()[0]->file()); + Editor e(dcp->cpls()[0]->file().get()); + e.replace("<AnnotationText>A Test DCP</AnnotationText>", "<AnnotationText>A Test DCP 1</AnnotationText>"); + } + + check_verify_result ( + {dir}, + { + { dcp::VerificationNote::VERIFY_WARNING, dcp::VerificationNote::CPL_ANNOTATION_TEXT_DIFFERS_FROM_CONTENT_TITLE_TEXT }, + { dcp::VerificationNote::VERIFY_ERROR, dcp::VerificationNote::CPL_HASH_INCORRECT } + }); +} + |
