Mercurial > hg > orthanc-databases
comparison PostgreSQL/UnitTests/UnitTestsMain.cpp @ 267:ece4663dedde
Fix issue #193
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 21 Apr 2021 11:03:44 +0200 |
parents | a4918d57435c |
children | 7ec461718edb |
comparison
equal
deleted
inserted
replaced
266:cc7af42d4f23 | 267:ece4663dedde |
---|---|
20 | 20 |
21 | 21 |
22 #include "../Plugins/PostgreSQLIndex.h" | 22 #include "../Plugins/PostgreSQLIndex.h" |
23 | 23 |
24 #include <Logging.h> | 24 #include <Logging.h> |
25 #include <Toolbox.h> | |
25 #include <gtest/gtest.h> | 26 #include <gtest/gtest.h> |
26 | 27 |
27 OrthancDatabases::PostgreSQLParameters globalParameters_; | 28 OrthancDatabases::PostgreSQLParameters globalParameters_; |
28 | 29 |
29 #include "../../Framework/Plugins/IndexUnitTests.h" | 30 #include "../../Framework/Plugins/IndexUnitTests.h" |
124 globalParameters_.SetUsername(argv[3]); | 125 globalParameters_.SetUsername(argv[3]); |
125 globalParameters_.SetPassword(argv[4]); | 126 globalParameters_.SetPassword(argv[4]); |
126 globalParameters_.SetDatabase(argv[5]); | 127 globalParameters_.SetDatabase(argv[5]); |
127 | 128 |
128 ::testing::InitGoogleTest(&argc, argv); | 129 ::testing::InitGoogleTest(&argc, argv); |
130 Orthanc::Toolbox::InitializeOpenSsl(); | |
129 Orthanc::Logging::Initialize(); | 131 Orthanc::Logging::Initialize(); |
130 Orthanc::Logging::EnableInfoLevel(true); | 132 Orthanc::Logging::EnableInfoLevel(true); |
131 Orthanc::Logging::EnableTraceLevel(true); | 133 Orthanc::Logging::EnableTraceLevel(true); |
132 | 134 |
133 int result = RUN_ALL_TESTS(); | 135 int result = RUN_ALL_TESTS(); |
134 | 136 |
135 Orthanc::Logging::Finalize(); | 137 Orthanc::Logging::Finalize(); |
138 Orthanc::Toolbox::FinalizeOpenSsl(); | |
136 | 139 |
137 return result; | 140 return result; |
138 } | 141 } |