diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-26 00:30:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-06 00:44:44 +0100 |
| commit | 0ce89383352dc76afef6fa54f9f7acbe15ad8f2b (patch) | |
| tree | c878e436f8ec1fd2cd1f590b2f6eee9614abc9d1 /test | |
| parent | ef207d932aff9e873766861e373e4c910ea161da (diff) | |
WIP: Allow export of a verification report (#1823).
Diffstat (limited to 'test')
| -rw-r--r-- | test/reels_test.cc | 8 | ||||
| -rw-r--r-- | test/test.cc | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/reels_test.cc b/test/reels_test.cc index 2a87ef6b6..5de9cd131 100644 --- a/test/reels_test.cc +++ b/test/reels_test.cc @@ -503,7 +503,7 @@ BOOST_AUTO_TEST_CASE (reels_should_not_be_short1) make_and_verify_dcp (film); vector<boost::filesystem::path> dirs = { film->dir(film->dcp_name(false)) }; - auto notes = dcp::verify(dirs, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()); + auto notes = dcp::verify(dirs, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()).notes; dump_notes (notes); BOOST_REQUIRE (notes.empty()); } @@ -528,7 +528,7 @@ BOOST_AUTO_TEST_CASE (reels_should_not_be_short2) make_and_verify_dcp (film); vector<boost::filesystem::path> dirs = { film->dir(film->dcp_name(false)) }; - auto const notes = dcp::verify(dirs, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()); + auto const notes = dcp::verify(dirs, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()).notes; dump_notes (notes); BOOST_REQUIRE (notes.empty()); } @@ -549,7 +549,7 @@ BOOST_AUTO_TEST_CASE (reels_should_not_be_short3) make_and_verify_dcp (film); - auto const notes = dcp::verify({}, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()); + auto const notes = dcp::verify({}, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()).notes; dump_notes (notes); BOOST_REQUIRE (notes.empty()); } @@ -579,7 +579,7 @@ BOOST_AUTO_TEST_CASE (reels_should_not_be_short4) BOOST_REQUIRE (!wait_for_jobs()); vector<boost::filesystem::path> dirs = { film->dir(film->dcp_name(false)) }; - auto const notes = dcp::verify(dirs, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()); + auto const notes = dcp::verify(dirs, {}, boost::bind(&no_op), boost::bind(&no_op), {}, TestPaths::xsd()).notes; dump_notes (notes); BOOST_REQUIRE (notes.empty()); } diff --git a/test/test.cc b/test/test.cc index 8ca103a6b..d9c7bf15d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -948,7 +948,7 @@ void progress (float) {} void verify_dcp(boost::filesystem::path dir, vector<dcp::VerificationNote::Code> ignore) { - auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, TestPaths::xsd()); + auto notes = dcp::verify({dir}, {}, &stage, &progress, {}, TestPaths::xsd()).notes; bool ok = true; for (auto i: notes) { if (find(ignore.begin(), ignore.end(), i.code()) == ignore.end()) { |
