comparison UnitTestsSources/VersionsTests.cpp @ 2366:26f3a346226f

more consistent handling of libiconv in cmake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Aug 2017 21:21:48 +0200
parents eedcddb42767
children 5a650eef0794
comparison
equal deleted inserted replaced
2365:9e0eae8a5ea4 2366:26f3a346226f
42 #include <curl/curl.h> 42 #include <curl/curl.h>
43 #include <boost/version.hpp> 43 #include <boost/version.hpp>
44 #include <sqlite3.h> 44 #include <sqlite3.h>
45 #include <lua.h> 45 #include <lua.h>
46 #include <jpeglib.h> 46 #include <jpeglib.h>
47 #include <iconv.h>
47 48
48 #if ORTHANC_ENABLE_SSL == 1 49 #if ORTHANC_ENABLE_SSL == 1
49 #include <openssl/opensslv.h> 50 #include <openssl/opensslv.h>
50 #endif 51 #endif
51 52
141 TEST(Version, LuaStatic) 142 TEST(Version, LuaStatic)
142 { 143 {
143 ASSERT_STREQ("Lua 5.1.5", LUA_RELEASE); 144 ASSERT_STREQ("Lua 5.1.5", LUA_RELEASE);
144 } 145 }
145 146
147 TEST(Version, LibIconvStatic)
148 {
149 static const int major = 1;
150 static const int minor = 15;
151 ASSERT_EQ((major << 8) + minor, _LIBICONV_VERSION);
152 }
153
146 154
147 #if ORTHANC_ENABLE_SSL == 1 155 #if ORTHANC_ENABLE_SSL == 1
148 TEST(Version, OpenSslStatic) 156 TEST(Version, OpenSslStatic)
149 { 157 {
150 ASSERT_EQ(0x1000204fL /* openssl-1.0.2d */, OPENSSL_VERSION_NUMBER); 158 ASSERT_EQ(0x1000204fL /* openssl-1.0.2d */, OPENSSL_VERSION_NUMBER);