diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-03 20:41:32 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-03 20:41:32 +0000 |
| commit | 50b5f8f9df0439d2d8fa9004e0b4af2f3e1eb44c (patch) | |
| tree | 7fd862d261d406a7f93b8531b01b892feb309c8a /test/tests.cc | |
| parent | aef58f7a1caf6a67c2c0b12ba3a6bc632d890f4e (diff) | |
Sort-of generates a signed CPL.
Diffstat (limited to 'test/tests.cc')
| -rw-r--r-- | test/tests.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/tests.cc b/test/tests.cc index 71796f72..d27b2ea4 100644 --- a/test/tests.cc +++ b/test/tests.cc @@ -56,6 +56,8 @@ wav (libdcp::Channel) BOOST_AUTO_TEST_CASE (dcp_test) { + libdcp::init (); + Kumu::libdcp_test = true; libdcp::Metadata* t = libdcp::Metadata::instance (); @@ -598,7 +600,11 @@ BOOST_AUTO_TEST_CASE (encryption) boost::filesystem::remove_all ("build/test/bar"); boost::filesystem::create_directories ("build/test/bar"); libdcp::DCP d ("build/test/bar"); + d.set_encrypted (true); + d.set_certificates (libdcp::CertificateChain ("test/data/certificate_chain")); + d.set_signer_key ("test/data/signer.key"); shared_ptr<libdcp::CPL> cpl (new libdcp::CPL ("build/test/bar", "A Test DCP", libdcp::FEATURE, 24, 24)); + shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset ( j2c, |
