Mercurial > hg > orthanc-databases
comparison MySQL/UnitTests/UnitTestsMain.cpp @ 40:5600949bfb12
preparing for release
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 08:28:02 +0200 |
parents | b2ff1cd2907a |
children | 4c3f767ead03 |
comparison
equal
deleted
inserted
replaced
39:a9b8375099f6 | 40:5600949bfb12 |
---|---|
29 #include "../../Framework/MySQL/MySQLResult.h" | 29 #include "../../Framework/MySQL/MySQLResult.h" |
30 #include "../../Framework/MySQL/MySQLStatement.h" | 30 #include "../../Framework/MySQL/MySQLStatement.h" |
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/Logging.h> | 35 #include <Core/Logging.h> |
35 | 36 |
36 #include <gtest/gtest.h> | 37 #include <gtest/gtest.h> |
37 | 38 |
38 | 39 |
213 | 214 |
214 ::testing::InitGoogleTest(&argc, argv); | 215 ::testing::InitGoogleTest(&argc, argv); |
215 Orthanc::Logging::Initialize(); | 216 Orthanc::Logging::Initialize(); |
216 Orthanc::Logging::EnableInfoLevel(true); | 217 Orthanc::Logging::EnableInfoLevel(true); |
217 Orthanc::Logging::EnableTraceLevel(true); | 218 Orthanc::Logging::EnableTraceLevel(true); |
219 Orthanc::HttpClient::GlobalInitialize(); | |
218 | 220 |
219 if (args.size() == 4) | 221 if (args.size() == 4) |
220 { | 222 { |
221 // UNIX flavor | 223 // UNIX flavor |
222 globalParameters_.SetUnixSocket(args[0]); | 224 globalParameters_.SetUnixSocket(args[0]); |
244 std::cout << "Parameters of the MySQL connection: " << std::endl | 246 std::cout << "Parameters of the MySQL connection: " << std::endl |
245 << config.toStyledString() << std::endl; | 247 << config.toStyledString() << std::endl; |
246 | 248 |
247 int result = RUN_ALL_TESTS(); | 249 int result = RUN_ALL_TESTS(); |
248 | 250 |
251 Orthanc::HttpClient::GlobalFinalize(); | |
249 Orthanc::Logging::Finalize(); | 252 Orthanc::Logging::Finalize(); |
250 | 253 |
251 OrthancDatabases::MySQLDatabase::GlobalFinalization(); | 254 OrthancDatabases::MySQLDatabase::GlobalFinalization(); |
252 | 255 |
253 return result; | 256 return result; |