Try to make tests more robust by specifying signer/decryption chains.
[dcpomatic.git] / test / test.cc
index eba0fc49055cb8747edc5de568a1b46f9dd0fe6d..1e84d5162199e17b708221d84bb2445c43fab9c1 100644 (file)
@@ -115,6 +115,12 @@ setup_test_config ()
                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