{
vector<boost::filesystem::path> directories;
directories.push_back (path);
- auto notes = dcp::verify(directories, {}, &stage, &progress, {}, xsd_test);
+ auto notes = dcp::verify(directories, {}, &stage, &progress, {}, xsd_test).notes;
vector<dcp::VerificationNote> filtered_notes;
std::copy_if (notes.begin(), notes.end(), std::back_inserter(filtered_notes), [](dcp::VerificationNote const& i) {
return i.code() != dcp::VerificationNote::Code::INVALID_STANDARD && i.code() != dcp::VerificationNote::Code::INVALID_SUBTITLE_DURATION;
check_combined({in}, out);
- auto notes = dcp::verify({out}, {}, &stage, &progress, {}, xsd_test);
+ auto notes = dcp::verify({out}, {}, &stage, &progress, {}, xsd_test).notes;
vector<dcp::VerificationNote> filtered_notes;
std::copy_if(notes.begin(), notes.end(), std::back_inserter(filtered_notes), [](dcp::VerificationNote const& i) {
return i.code() != dcp::VerificationNote::Code::INVALID_STANDARD && i.code() != dcp::VerificationNote::Code::MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL;
void
check_verify_result(vector<path> dir, vector<dcp::DecryptedKDM> kdm, vector<dcp::VerificationNote> test_notes)
{
- auto notes = dcp::verify({dir}, kdm, &stage, &progress, {}, xsd_test);
+ auto notes = dcp::verify({dir}, kdm, &stage, &progress, {}, xsd_test).notes;
std::sort (notes.begin(), notes.end());
std::sort (test_notes.begin(), test_notes.end());
e.replace (from, to);
}
- auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, xsd_test);
+ auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, xsd_test).notes;
BOOST_REQUIRE_EQUAL (notes.size(), codes.size());
auto i = notes.begin();
{
stages.clear ();
auto dir = setup (1, "no_error");
- auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, xsd_test);
+ auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, xsd_test).notes;
path const cpl_file = dir / dcp_test1_cpl();
path const pkl_file = dir / dcp_test1_pkl();
{
stages.clear ();
auto dir = setup (3, "verify_invalid_standard");
- auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, xsd_test);
+ auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, xsd_test).notes;
path const cpl_file = dir / "cpl_cbfd2bc0-21cf-4a8f-95d8-9cddcbe51296.xml";
path const pkl_file = dir / "pkl_d87a950c-bd6f-41f6-90cc-56ccd673e131.xml";
d->set_annotation_text("A Test DCP");
d->write_xml();
- return dcp::verify({dcp_path}, {}, &stage, &progress, {}, xsd_test);
+ return dcp::verify({dcp_path}, {}, &stage, &progress, {}, xsd_test).notes;
}
vector<boost::filesystem::path> directories;
directories.push_back (argv[optind]);
- auto notes = dcp::verify(directories, {}, stage, progress, verification_options);
+ auto notes = dcp::verify(directories, {}, stage, progress, verification_options).notes;
dcp::filter_notes (notes, ignore_missing_assets);
if (!quiet) {