projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ccec012
)
Try to make tests more robust by specifying signer/decryption chains.
author
Carl Hetherington
<cth@carlh.net>
Fri, 26 Feb 2021 09:07:42 +0000
(10:07 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 26 Feb 2021 09:07:42 +0000
(10:07 +0100)
test/data
patch
|
blob
|
history
test/test.cc
patch
|
blob
|
history
diff --git
a/test/data
b/test/data
index 94ae4fe106b65c930b7dfbeb41cd5b8f8c83f690..c9df3856b3022e9cc7e052cda2b2de9db186ec93 160000
(submodule)
--- a/
test/data
+++ b/
test/data
@@
-1
+1
@@
-Subproject commit
94ae4fe106b65c930b7dfbeb41cd5b8f8c83f690
+Subproject commit
c9df3856b3022e9cc7e052cda2b2de9db186ec93
diff --git
a/test/test.cc
b/test/test.cc
index eba0fc49055cb8747edc5de568a1b46f9dd0fe6d..1e84d5162199e17b708221d84bb2445c43fab9c1 100644
(file)
--- a/
test/test.cc
+++ b/
test/test.cc
@@
-115,6
+115,12
@@
setup_test_config ()
LogEntry::TYPE_DISK
);
Config::instance()->set_automatic_audio_analysis (false);
LogEntry::TYPE_DISK
);
Config::instance()->set_automatic_audio_analysis (false);
+ auto signer = make_shared<dcp::CertificateChain>(dcp::file_to_string("test/data/signer_chain"));
+ signer->set_key(dcp::file_to_string("test/data/signer_key"));
+ Config::instance()->set_signer_chain (signer);
+ auto decryption = make_shared<dcp::CertificateChain>(dcp::file_to_string("test/data/decryption_chain"));
+ decryption->set_key(dcp::file_to_string("test/data/decryption_key"));
+ Config::instance()->set_decryption_chain (decryption);
}
class TestSignalManager : public SignalManager
}
class TestSignalManager : public SignalManager