summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-21 00:22:56 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-21 00:22:56 +0100
commita56a6b1de1a92f01ca727ae467688f069740857b (patch)
tree296e765f5ffe2ad2f2548991037973030aaee285
parentf9d0bc389d3f36263fb7a3b54d2263878a8ea7fb (diff)
Improve test checking.
-rw-r--r--test/vf_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/vf_test.cc b/test/vf_test.cc
index ab39a6510..8fbb9b9d4 100644
--- a/test/vf_test.cc
+++ b/test/vf_test.cc
@@ -167,4 +167,15 @@ BOOST_AUTO_TEST_CASE (vf_test3)
vf->make_dcp ();
wait_for_jobs ();
vf->write_metadata ();
+
+ dcp::DCP vf_c (vf->dir (vf->dcp_name ()));
+ vf_c.read ();
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_picture());
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->entry_point(), 24);
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->duration(), 72);
+ BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_sound());
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->entry_point(), 24);
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->duration(), 72);
}