diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-03-08 22:47:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-08 22:47:33 +0100 |
| commit | 82d3db851257dbd460cff1c7eed2640a39b8ebfe (patch) | |
| tree | 3dc74f799bb3d56027ae569a73c5be90bb4349b8 /test | |
| parent | 900ad47ca6e2addab8ac376daed834dd7b28c01d (diff) | |
Add verification checks too see if reel assets' Duration or IntrinsicDuration are too small.
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 b5069023..2ff66f69 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -471,3 +471,25 @@ BOOST_AUTO_TEST_CASE (verify_test13) next_verify_test_number++; } + +/* DCP with a short asset */ +BOOST_AUTO_TEST_CASE (verify_test14) +{ + vector<boost::filesystem::path> directories = setup (8, next_verify_test_number); + list<dcp::VerificationNote> notes = dcp::verify (directories, &stage, &progress, "xsd"); + + dump_notes (notes); + + BOOST_REQUIRE_EQUAL (notes.size(), 4); + list<dcp::VerificationNote>::const_iterator i = notes.begin (); + BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::DURATION_TOO_SMALL); + ++i; + BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::INTRINSIC_DURATION_TOO_SMALL); + ++i; + BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::DURATION_TOO_SMALL); + ++i; + BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::INTRINSIC_DURATION_TOO_SMALL); + ++i; + next_verify_test_number++; +} + |
