Mercurial > hg > orthanc
annotate OrthancServer/UnitTestsSources/VersionsTests.cpp @ 5654:b89439c14916
back to mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Jun 2024 17:53:00 +0200 |
parents | 6ac54d7bff90 |
children | 9741e5897e9a |
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 |
5640
f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5509
diff
changeset
|
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5509
diff
changeset
|
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
5485
48b8dae6dc77
upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5397
diff
changeset
|
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
827
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
8 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
9 * 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
|
10 * 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
|
11 * 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
|
12 * License, or (at your option) any later version. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
13 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
14 * 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
|
15 * 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
|
16 * 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
|
17 * General Public License for more details. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
18 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
19 * 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
|
20 * 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
|
21 **/ |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
22 |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
753
diff
changeset
|
23 |
831
84513f2ee1f3
pch for unit tests and server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
827
diff
changeset
|
24 #include "PrecompiledHeadersUnitTests.h" |
4062 | 25 #include <gtest/gtest.h> |
0 | 26 |
27 #include <stdint.h> | |
28 #include <math.h> | |
29 #include <png.h> | |
30 #include <ctype.h> | |
31 #include <zlib.h> | |
32 #include <curl/curl.h> | |
33 #include <boost/version.hpp> | |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
34 #include <sqlite3.h> |
382 | 35 #include <lua.h> |
1604 | 36 #include <jpeglib.h> |
3244 | 37 |
38 #if BUILDING_LIBICONV == 1 | |
39 # include <iconv.h> | |
40 #endif | |
1545 | 41 |
2136
dd609a99d39a
uniformization of the macro naming
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2097
diff
changeset
|
42 #if ORTHANC_ENABLE_SSL == 1 |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
43 # include <openssl/opensslv.h> |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
44 #endif |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
45 |
3992
f9863630ec7f
working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3890
diff
changeset
|
46 #if (ORTHANC_ENABLE_CIVETWEB == 1 && \ |
f9863630ec7f
working on the shared library for Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3890
diff
changeset
|
47 ORTHANC_UNIT_TESTS_LINK_FRAMEWORK != 1) |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
48 # include <civetweb.h> |
1545 | 49 #endif |
0 | 50 |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
51 #if ORTHANC_ENABLE_PUGIXML == 1 |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
52 # include <pugixml.hpp> |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
53 #endif |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
54 |
0 | 55 |
56 TEST(Versions, Zlib) | |
57 { | |
58 ASSERT_STREQ(zlibVersion(), ZLIB_VERSION); | |
59 } | |
60 | |
61 TEST(Versions, Curl) | |
62 { | |
63 curl_version_info_data* v = curl_version_info(CURLVERSION_NOW); | |
64 ASSERT_STREQ(LIBCURL_VERSION, v->version); | |
65 } | |
66 | |
67 TEST(Versions, Png) | |
68 { | |
69 ASSERT_EQ(PNG_LIBPNG_VER_MAJOR * 10000 + PNG_LIBPNG_VER_MINOR * 100 + PNG_LIBPNG_VER_RELEASE, | |
1492 | 70 static_cast<int>(png_access_version_number())); |
0 | 71 } |
72 | |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
73 TEST(Versions, SQLite) |
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
74 { |
1478 | 75 #if defined(__APPLE__) |
76 // Under OS X, there might exist minor differences between the | |
77 // version of the headers and the version of the library, for the | |
78 // system-wide SQLite. Ignore these differences. | |
79 #else | |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
80 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion |
1478 | 81 EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); |
82 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
|
83 |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
84 /** |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
85 * 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
|
86 * 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
|
87 * 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
|
88 * 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
|
89 **/ |
9a4db48ff5b1
removed too strict unit test on SQLite version
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3290
diff
changeset
|
90 // EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); |
1478 | 91 #endif |
181
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
92 |
194
0186ac92810c
fixes for Ubuntu 10.04
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
181
diff
changeset
|
93 // 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
|
94 // "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
|
95 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); |
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
96 } |
2dece1526c06
simplifying db schema
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
63
diff
changeset
|
97 |
0 | 98 |
382 | 99 TEST(Versions, Lua) |
100 { | |
101 // Ensure that the Lua version is above 5.1.0. This version has | |
102 // introduced some API changes. | |
103 ASSERT_GE(LUA_VERSION_NUM, 501); | |
104 } | |
105 | |
106 | |
63 | 107 #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
|
108 |
0 | 109 TEST(Versions, ZlibStatic) |
110 { | |
5505
b305bc32b77d
upgraded to zlib 1.3.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5503
diff
changeset
|
111 ASSERT_STREQ("1.3.1", zlibVersion()); |
0 | 112 } |
113 | |
114 TEST(Versions, BoostStatic) | |
115 { | |
5645
6ac54d7bff90
fix unit test Versions.BoostStatic
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5640
diff
changeset
|
116 ASSERT_TRUE(std::string(BOOST_LIB_VERSION) == "1_85" || |
5067
6ad2bea0e07e
upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5064
diff
changeset
|
117 std::string(BOOST_LIB_VERSION) == "1_69" /* if USE_LEGACY_BOOST */); |
0 | 118 } |
119 | |
120 TEST(Versions, CurlStatic) | |
121 { | |
122 curl_version_info_data* v = curl_version_info(CURLVERSION_NOW); | |
5503
5910aa0c96ce
upgraded to curl 8.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5502
diff
changeset
|
123 ASSERT_STREQ("8.5.0", v->version); |
0 | 124 } |
125 | |
126 TEST(Versions, PngStatic) | |
127 { | |
5506
0446fa29de49
upgraded to libpng 1.6.40
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5505
diff
changeset
|
128 ASSERT_EQ(10640u, png_access_version_number()); |
0446fa29de49
upgraded to libpng 1.6.40
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5505
diff
changeset
|
129 ASSERT_STREQ("1.6.40", PNG_LIBPNG_VER_STRING); |
0 | 130 } |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
131 |
1604 | 132 TEST(Versions, JpegStatic) |
133 { | |
134 ASSERT_EQ(9, JPEG_LIB_VERSION_MAJOR); | |
5507
11a140c73bb6
upgraded to libjpeg 9f
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5506
diff
changeset
|
135 ASSERT_EQ(6 /* f */, JPEG_LIB_VERSION_MINOR); |
1604 | 136 } |
137 | |
382 | 138 TEST(Versions, CurlSslStatic) |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
139 { |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
140 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
|
141 |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
142 // Check that SSL support is enabled when required |
1545 | 143 bool curlSupportsSsl = (vinfo->features & CURL_VERSION_SSL) != 0; |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
144 |
2136
dd609a99d39a
uniformization of the macro naming
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2097
diff
changeset
|
145 #if ORTHANC_ENABLE_SSL == 0 |
29
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
146 ASSERT_FALSE(curlSupportsSsl); |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
147 #else |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
148 ASSERT_TRUE(curlSupportsSsl); |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
149 #endif |
042ac60f5bf9
simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
150 } |
382 | 151 |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
152 TEST(Versions, LuaStatic) |
382 | 153 { |
2947 | 154 ASSERT_STREQ("Lua 5.3.5", LUA_RELEASE); |
382 | 155 } |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
156 |
3241
32596919d729
first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3068
diff
changeset
|
157 |
32596919d729
first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3068
diff
changeset
|
158 #if BUILDING_LIBICONV == 1 |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
159 TEST(Versions, LibIconvStatic) |
2366
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
160 { |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
161 static const int major = 1; |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
162 static const int minor = 15; |
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
163 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
|
164 } |
3241
32596919d729
first compilation combining ICU and LSB
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3068
diff
changeset
|
165 #endif |
2366
26f3a346226f
more consistent handling of libiconv in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2327
diff
changeset
|
166 |
1545 | 167 |
2136
dd609a99d39a
uniformization of the macro naming
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2097
diff
changeset
|
168 #if ORTHANC_ENABLE_SSL == 1 |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
169 TEST(Versions, OpenSslStatic) |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
170 { |
5502
834be222605b
upgraded to OpenSSL 3.1.4
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5501
diff
changeset
|
171 // openssl-3.1.4 |
5228
993a6b23f032
upgraded to openssl 3.1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
172 // https://www.openssl.org/docs/man3.0/man3/OPENSSL_VERSION_NUMBER.html |
993a6b23f032
upgraded to openssl 3.1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
173 ASSERT_EQ(3 /* major */ * 0x10000000L + |
993a6b23f032
upgraded to openssl 3.1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
174 1 /* minor */ * 0x00100000L + |
5502
834be222605b
upgraded to OpenSSL 3.1.4
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5501
diff
changeset
|
175 4 /* patch */ * 0x00000010L, 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
|
176 } |
1545 | 177 #endif |
748
de9763f63510
upgrade to openssl-1.0.1g because of heartbeat exploit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
178 |
1502
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
179 |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
180 #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
|
181 |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
182 TEST(Versions, JsonCpp) |
1502
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
183 { |
2497
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
184 #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
|
185 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
|
186 #elif ORTHANC_LEGACY_JSONCPP == 0 |
5509
46fa46c83628
upgraded to jsoncpp 1.9.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5508
diff
changeset
|
187 ASSERT_STREQ("1.9.5", 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
|
188 #else |
0611aa383e62
Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2449
diff
changeset
|
189 # 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
|
190 #endif |
1502
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
191 } |
5e9c40419fb9
Upgrade to JsonCpp 0.10.5 for static and Windows builds
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1492
diff
changeset
|
192 |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
193 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
194 #if ORTHANC_ENABLE_CIVETWEB == 1 |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
195 TEST(Versions, Civetweb) |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
196 { |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
197 ASSERT_EQ(1, CIVETWEB_VERSION_MAJOR); |
4616
57b1a36645ae
upgrade to civetweb 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
198 ASSERT_EQ(14, CIVETWEB_VERSION_MINOR); |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
199 ASSERT_EQ(0, CIVETWEB_VERSION_PATCH); |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
200 } |
37 | 201 #endif |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
202 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
203 |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
204 #if ORTHANC_ENABLE_PUGIXML == 1 |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
205 TEST(Versions, Pugixml) |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
206 { |
5508
ababd0af28ab
upgraded to pugixml 1.14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5507
diff
changeset
|
207 ASSERT_EQ(1140, PUGIXML_VERSION); |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
208 } |
3068
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
209 #endif |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
210 |
ad37c21ec4db
fix compatibility with civetweb 1.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
211 |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3287
diff
changeset
|
212 #endif |