Mercurial > hg > orthanc
annotate OrthancServer/UnitTestsSources/VersionsTests.cpp @ 5131:e107ff622e6d
merge
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 05 Jan 2023 17:25:21 +0100 |
parents | 02fae039a15d |
children | 0ea402b4d901 |
rev | line source |
---|---|
827
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
1 /** |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
2 * Orthanc - A Lightweight, RESTful DICOM Store |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1288
6e7e5ed91c2d
upgrade to year 2015
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
967
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
4870
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium |
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
827
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
7 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
8 * This program is free software: you can redistribute it and/or |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
9 * modify it under the terms of the GNU General Public License as |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
10 * published by the Free Software Foundation, either version 3 of the |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
11 * License, or (at your option) any later version. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
12 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
13 * This program is distributed in the hope that it will be useful, but |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
14 * WITHOUT ANY WARRANTY; without even the implied warranty of |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
16 * General Public License for more details. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
17 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
18 * You should have received a copy of the GNU General Public License |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
20 **/ |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
21 |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
22 |
831
84513f2ee1f3
pch for unit tests and server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
827
diff
changeset
|
23 #include "PrecompiledHeadersUnitTests.h" |
4062 | 24 #include <gtest/gtest.h> |
0 | 25 |
26 #include <stdint.h> | |
27 #include <math.h> | |
28 #include <png.h> | |
29 #include <ctype.h> | |
30 #include <zlib.h> | |
31 #include <curl/curl.h> | |
32 #include <boost/version.hpp> | |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
33 #include <sqlite3.h> |
382 | 34 #include <lua.h> |
1604 | 35 #include <jpeglib.h> |
3244 | 36 |
37 #if BUILDING_LIBICONV == 1 | |
38 # include <iconv.h> | |
39 #endif | |
1545 | 40 |
2136
dd609a99d39a
uniformization of the macro naming
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2097
diff
changeset
|
41 #if ORTHANC_ENABLE_SSL == 1 |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
42 # include <openssl/opensslv.h> |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
43 #endif |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
44 |
3992
f9863630ec7f
working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3890
diff
changeset
|
45 #if (ORTHANC_ENABLE_CIVETWEB == 1 && \ |
f9863630ec7f
working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3890
diff
changeset
|
46 ORTHANC_UNIT_TESTS_LINK_FRAMEWORK != 1) |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
47 # include <civetweb.h> |
1545 | 48 #endif |
0 | 49 |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
50 #if ORTHANC_ENABLE_PUGIXML == 1 |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
51 # include <pugixml.hpp> |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
52 #endif |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
53 |
0 | 54 |
55 TEST(Versions, Zlib) | |
56 { | |
57 ASSERT_STREQ(zlibVersion(), ZLIB_VERSION); | |
58 } | |
59 | |
60 TEST(Versions, Curl) | |
61 { | |
62 curl_version_info_data* v = curl_version_info(CURLVERSION_NOW); | |
63 ASSERT_STREQ(LIBCURL_VERSION, v->version); | |
64 } | |
65 | |
66 TEST(Versions, Png) | |
67 { | |
68 ASSERT_EQ(PNG_LIBPNG_VER_MAJOR * 10000 + PNG_LIBPNG_VER_MINOR * 100 + PNG_LIBPNG_VER_RELEASE, | |
1492 | 69 static_cast<int>(png_access_version_number())); |
0 | 70 } |
71 | |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
72 TEST(Versions, SQLite) |
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
73 { |
1478 | 74 #if defined(__APPLE__) |
75 // Under OS X, there might exist minor differences between the | |
76 // version of the headers and the version of the library, for the | |
77 // system-wide SQLite. Ignore these differences. | |
78 #else | |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
79 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion |
1478 | 80 EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); |
81 EXPECT_STREQ(sqlite3_libversion(), SQLITE_VERSION); | |
3564
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
82 |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
83 /** |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
84 * On Orthanc > 1.5.8, we comment out the following test, that is |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
85 * too strict for some GNU/Linux distributions to apply their own |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
86 * security fixes. Checking the main version macros is sufficient. |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
87 * https://bugzilla.suse.com/show_bug.cgi?id=1154550#c2 |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
88 **/ |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
89 // EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); |
1478 | 90 #endif |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
91 |
194
0186ac92810c
fixes for Ubuntu 10.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
181
diff
changeset
|
92 // Ensure that the SQLite version is above 3.7.0. |
0186ac92810c
fixes for Ubuntu 10.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
181
diff
changeset
|
93 // "sqlite3_create_function_v2" is not defined in previous versions. |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
94 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); |
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
95 } |
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
96 |
0 | 97 |
382 | 98 TEST(Versions, Lua) |
99 { | |
100 // Ensure that the Lua version is above 5.1.0. This version has | |
101 // introduced some API changes. | |
102 ASSERT_GE(LUA_VERSION_NUM, 501); | |
103 } | |
104 | |
105 | |
63 | 106 #if ORTHANC_STATIC == 1 |
1502
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
107 |
0 | 108 TEST(Versions, ZlibStatic) |
109 { | |
2509
9d9f2d088dce
upgrade to zlib 1.2.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2497
diff
changeset
|
110 ASSERT_STREQ("1.2.11", zlibVersion()); |
0 | 111 } |
112 | |
113 TEST(Versions, BoostStatic) | |
114 { | |
5067
6ad2bea0e07e
upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5064
diff
changeset
|
115 ASSERT_TRUE(std::string(BOOST_LIB_VERSION) == "1_80" || |
6ad2bea0e07e
upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5064
diff
changeset
|
116 std::string(BOOST_LIB_VERSION) == "1_69" /* if USE_LEGACY_BOOST */); |
0 | 117 } |
118 | |
119 TEST(Versions, CurlStatic) | |
120 { | |
121 curl_version_info_data* v = curl_version_info(CURLVERSION_NOW); | |
4710
dbb1a90c4df4
upgrade to curl 7.77.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4635
diff
changeset
|
122 ASSERT_STREQ("7.77.0", v->version); |
0 | 123 } |
124 | |
125 TEST(Versions, PngStatic) | |
126 { | |
3287
5e8e020893d0
upgrade to openssl 1.0.2p
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3286
diff
changeset
|
127 ASSERT_EQ(10636u, png_access_version_number()); |
3285
3f7d4b735f95
upgrade to libpng 1.6.36
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3283
diff
changeset
|
128 ASSERT_STREQ("1.6.36", PNG_LIBPNG_VER_STRING); |
0 | 129 } |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
130 |
1604 | 131 TEST(Versions, JpegStatic) |
132 { | |
133 ASSERT_EQ(9, JPEG_LIB_VERSION_MAJOR); | |
3286
2b547eaed193
upgrade to libjpeg 9c
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3285
diff
changeset
|
134 ASSERT_EQ(3, JPEG_LIB_VERSION_MINOR); |
1604 | 135 } |
136 | |
382 | 137 TEST(Versions, CurlSslStatic) |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
138 { |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
139 curl_version_info_data * vinfo = curl_version_info(CURLVERSION_NOW); |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
140 |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
141 // Check that SSL support is enabled when required |
1545 | 142 bool curlSupportsSsl = (vinfo->features & CURL_VERSION_SSL) != 0; |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
143 |
2136
dd609a99d39a
uniformization of the macro naming
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2097
diff
changeset
|
144 #if ORTHANC_ENABLE_SSL == 0 |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
145 ASSERT_FALSE(curlSupportsSsl); |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
146 #else |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
147 ASSERT_TRUE(curlSupportsSsl); |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
148 #endif |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
149 } |
382 | 150 |
151 TEST(Version, LuaStatic) | |
152 { | |
2947 | 153 ASSERT_STREQ("Lua 5.3.5", LUA_RELEASE); |
382 | 154 } |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
155 |
3241
32596919d729
first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3068
diff
changeset
|
156 |
32596919d729
first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3068
diff
changeset
|
157 #if BUILDING_LIBICONV == 1 |
2366
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
158 TEST(Version, LibIconvStatic) |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
159 { |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
160 static const int major = 1; |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
161 static const int minor = 15; |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
162 ASSERT_EQ((major << 8) + minor, _LIBICONV_VERSION); |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
163 } |
3241
32596919d729
first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3068
diff
changeset
|
164 #endif |
2366
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
165 |
1545 | 166 |
2136
dd609a99d39a
uniformization of the macro naming
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2097
diff
changeset
|
167 #if ORTHANC_ENABLE_SSL == 1 |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
168 TEST(Version, OpenSslStatic) |
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
169 { |
5068
02fae039a15d
upgrade to openssl 3.0.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5067
diff
changeset
|
170 // openssl-3.0.5 |
4866
a02f58240e8a
fix unit test Version.OpenSslStatic
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4861
diff
changeset
|
171 ASSERT_EQ(3 * 0x10000000L + |
a02f58240e8a
fix unit test Version.OpenSslStatic
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4861
diff
changeset
|
172 0 * 0x00100000L + |
5068
02fae039a15d
upgrade to openssl 3.0.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5067
diff
changeset
|
173 1 * 0x00000050L + |
4866
a02f58240e8a
fix unit test Version.OpenSslStatic
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4861
diff
changeset
|
174 0 * 0x0000000fL, OPENSSL_VERSION_NUMBER); |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
175 } |
1545 | 176 #endif |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
177 |
1502
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
178 |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
179 #include <json/version.h> |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
180 |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
181 TEST(Version, JsonCpp) |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
182 { |
2497
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
183 #if ORTHANC_LEGACY_JSONCPP == 1 |
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
184 ASSERT_STREQ("0.10.6", JSONCPP_VERSION_STRING); |
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
185 #elif ORTHANC_LEGACY_JSONCPP == 0 |
4391
0c4ff5609548
upgraded to jsoncpp 1.9.4
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4390
diff
changeset
|
186 ASSERT_STREQ("1.9.4", JSONCPP_VERSION_STRING); |
2497
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
187 #else |
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
188 # error Macro ORTHANC_LEGACY_JSONCPP should be set |
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
189 #endif |
1502
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
190 } |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
191 |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
192 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
193 #if ORTHANC_ENABLE_CIVETWEB == 1 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
194 TEST(Version, Civetweb) |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
195 { |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
196 ASSERT_EQ(1, CIVETWEB_VERSION_MAJOR); |
4616
57b1a36645ae
upgrade to civetweb 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
197 ASSERT_EQ(14, CIVETWEB_VERSION_MINOR); |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
198 ASSERT_EQ(0, CIVETWEB_VERSION_PATCH); |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
199 } |
37 | 200 #endif |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
201 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
202 |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
203 #if ORTHANC_ENABLE_PUGIXML == 1 |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
204 TEST(Version, Pugixml) |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
205 { |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
206 ASSERT_EQ(190, PUGIXML_VERSION); |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
207 } |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
208 #endif |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
209 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
210 |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
211 #endif |