diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-24 11:26:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-24 11:26:50 +0100 |
| commit | 437f928f7d7209c9e4c8ea3e3b5d0e8dc43b54a8 (patch) | |
| tree | 50feb1d8277cf6ad7fb8da83b36b0d5782c55326 /test/read_dcp_test.cc | |
| parent | 23644a666637d3db3ccf2007a7cbbcdf4f2d29a2 (diff) | |
Add reporting of DCP type.
Diffstat (limited to 'test/read_dcp_test.cc')
| -rw-r--r-- | test/read_dcp_test.cc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/test/read_dcp_test.cc b/test/read_dcp_test.cc index 097d0aa9..60aa3591 100644 --- a/test/read_dcp_test.cc +++ b/test/read_dcp_test.cc @@ -18,14 +18,15 @@ */ #include <boost/test/unit_test.hpp> +#include <boost/optional/optional_io.hpp> #include "dcp.h" #include "cpl.h" using std::list; using boost::shared_ptr; -/** Read DCP that is in git and make sure that basic stuff is read in correctly */ -BOOST_AUTO_TEST_CASE (read_dcp) +/** Read a SMPTE DCP that is in git and make sure that basic stuff is read in correctly */ +BOOST_AUTO_TEST_CASE (read_dcp_test1) { dcp::DCP d ("test/ref/DCP/dcp_test1"); d.read (); @@ -35,4 +36,21 @@ BOOST_AUTO_TEST_CASE (read_dcp) BOOST_CHECK_EQUAL (cpls.front()->annotation_text(), "A Test DCP"); BOOST_CHECK_EQUAL (cpls.front()->content_kind(), dcp::FEATURE); + BOOST_REQUIRE (d.standard()); + BOOST_CHECK_EQUAL (d.standard(), dcp::SMPTE); +} + +/** Read an Interop DCP that is in git and make sure that basic stuff is read in correctly */ +BOOST_AUTO_TEST_CASE (read_dcp_test2) +{ + dcp::DCP d ("test/ref/DCP/dcp_test3"); + d.read (); + + list<shared_ptr<dcp::CPL> > cpls = d.cpls (); + BOOST_CHECK_EQUAL (cpls.size(), 1); + + BOOST_CHECK_EQUAL (cpls.front()->annotation_text(), "Test_FTR-1_F-119_10_2K_20160524_IOP_OV"); + BOOST_CHECK_EQUAL (cpls.front()->content_kind(), dcp::FEATURE); + BOOST_REQUIRE (d.standard()); + BOOST_CHECK_EQUAL (d.standard(), dcp::INTEROP); } |
