summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-03 20:41:32 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-03 20:41:32 +0000
commit50b5f8f9df0439d2d8fa9004e0b4af2f3e1eb44c (patch)
tree7fd862d261d406a7f93b8531b01b892feb309c8a /test
parentaef58f7a1caf6a67c2c0b12ba3a6bc632d890f4e (diff)
Sort-of generates a signed CPL.
Diffstat (limited to 'test')
-rw-r--r--test/tests.cc6
-rw-r--r--test/wscript2
2 files changed, 7 insertions, 1 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,
diff --git a/test/wscript b/test/wscript
index 43ca7d73..d22875e9 100644
--- a/test/wscript
+++ b/test/wscript
@@ -18,7 +18,7 @@ def configure(conf):
def build(bld):
obj = bld(features = 'cxx cxxprogram')
obj.name = 'tests'
- obj.uselib = 'BOOST_TEST OPENJPEG'
+ obj.uselib = 'BOOST_TEST OPENJPEG XMLSEC1'
obj.use = 'libdcp'
obj.source = 'tests.cc'
obj.target = 'tests'