Mercurial > hg > orthanc-databases
comparison MySQL/UnitTests/UnitTestsMain.cpp @ 42:4c3f767ead03 OrthancMySQL-1.0
set version
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 08:38:11 +0200 |
parents | 5600949bfb12 |
children | 6a574d810b98 |
comparison
equal
deleted
inserted
replaced
41:f729a4b6f37a | 42:4c3f767ead03 |
---|---|
31 #include "../../Framework/MySQL/MySQLTransaction.h" | 31 #include "../../Framework/MySQL/MySQLTransaction.h" |
32 #include "../../Framework/Plugins/IndexUnitTests.h" | 32 #include "../../Framework/Plugins/IndexUnitTests.h" |
33 | 33 |
34 #include <Core/HttpClient.h> | 34 #include <Core/HttpClient.h> |
35 #include <Core/Logging.h> | 35 #include <Core/Logging.h> |
36 #include <Core/Toolbox.h> | |
36 | 37 |
37 #include <gtest/gtest.h> | 38 #include <gtest/gtest.h> |
38 | 39 |
39 | 40 |
40 TEST(MySQLIndex, Lock) | 41 TEST(MySQLIndex, Lock) |
214 | 215 |
215 ::testing::InitGoogleTest(&argc, argv); | 216 ::testing::InitGoogleTest(&argc, argv); |
216 Orthanc::Logging::Initialize(); | 217 Orthanc::Logging::Initialize(); |
217 Orthanc::Logging::EnableInfoLevel(true); | 218 Orthanc::Logging::EnableInfoLevel(true); |
218 Orthanc::Logging::EnableTraceLevel(true); | 219 Orthanc::Logging::EnableTraceLevel(true); |
220 Orthanc::Toolbox::InitializeOpenSsl(); | |
219 Orthanc::HttpClient::GlobalInitialize(); | 221 Orthanc::HttpClient::GlobalInitialize(); |
220 | 222 |
221 if (args.size() == 4) | 223 if (args.size() == 4) |
222 { | 224 { |
223 // UNIX flavor | 225 // UNIX flavor |
247 << config.toStyledString() << std::endl; | 249 << config.toStyledString() << std::endl; |
248 | 250 |
249 int result = RUN_ALL_TESTS(); | 251 int result = RUN_ALL_TESTS(); |
250 | 252 |
251 Orthanc::HttpClient::GlobalFinalize(); | 253 Orthanc::HttpClient::GlobalFinalize(); |
254 Orthanc::Toolbox::FinalizeOpenSsl(); | |
255 OrthancDatabases::MySQLDatabase::GlobalFinalization(); | |
252 Orthanc::Logging::Finalize(); | 256 Orthanc::Logging::Finalize(); |
253 | 257 |
254 OrthancDatabases::MySQLDatabase::GlobalFinalization(); | |
255 | |
256 return result; | 258 return result; |
257 } | 259 } |