comparison UnitTestsSources/VersionsTests.cpp @ 3992:f9863630ec7f

working on the shared library for Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Jun 2020 16:07:01 +0200
parents 35065dd39cc8
children 27628b0f6ada
comparison
equal deleted inserted replaced
3991:5d2348b39392 3992:f9863630ec7f
29 * You should have received a copy of the GNU General Public License 29 * You should have received a copy of the GNU General Public License
30 * along with this program. If not, see <http://www.gnu.org/licenses/>. 30 * along with this program. If not, see <http://www.gnu.org/licenses/>.
31 **/ 31 **/
32 32
33 33
34 #if ORTHANC_UNIT_TESTS_LINK_FRAMEWORK == 1
35 # include <OrthancFramework/OrthancFramework.h>
36 #endif
37
34 #include "PrecompiledHeadersUnitTests.h" 38 #include "PrecompiledHeadersUnitTests.h"
35 #include "gtest/gtest.h" 39 #include "gtest/gtest.h"
36 40
37 #include <stdint.h> 41 #include <stdint.h>
38 #include <math.h> 42 #include <math.h>
51 55
52 #if ORTHANC_ENABLE_SSL == 1 56 #if ORTHANC_ENABLE_SSL == 1
53 # include <openssl/opensslv.h> 57 # include <openssl/opensslv.h>
54 #endif 58 #endif
55 59
56 #if ORTHANC_ENABLE_CIVETWEB == 1 60 #if (ORTHANC_ENABLE_CIVETWEB == 1 && \
61 ORTHANC_UNIT_TESTS_LINK_FRAMEWORK != 1)
57 # include <civetweb.h> 62 # include <civetweb.h>
58 #endif 63 #endif
59 64
60 #if ORTHANC_ENABLE_PUGIXML == 1 65 #if ORTHANC_ENABLE_PUGIXML == 1
61 # include <pugixml.hpp> 66 # include <pugixml.hpp>
111 // introduced some API changes. 116 // introduced some API changes.
112 ASSERT_GE(LUA_VERSION_NUM, 501); 117 ASSERT_GE(LUA_VERSION_NUM, 501);
113 } 118 }
114 119
115 120
116 #if ORTHANC_ENABLE_CIVETWEB == 1 121 #if (ORTHANC_ENABLE_CIVETWEB == 1 && \
122 ORTHANC_UNIT_TESTS_LINK_FRAMEWORK != 1)
117 TEST(Version, CivetwebCompression) 123 TEST(Version, CivetwebCompression)
118 { 124 {
119 ASSERT_TRUE(mg_check_feature(MG_FEATURES_COMPRESSION)); 125 ASSERT_TRUE(mg_check_feature(MG_FEATURES_COMPRESSION));
120 } 126 }
121 #endif 127 #endif