Mercurial > hg > orthanc
comparison UnitTests/Versions.cpp @ 181:2dece1526c06
simplifying db schema
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Nov 2012 18:09:19 +0100 |
parents | f1d0470ff334 |
children | 0186ac92810c |
comparison
equal
deleted
inserted
replaced
180:626777d01dc4 | 181:2dece1526c06 |
---|---|
5 #include <png.h> | 5 #include <png.h> |
6 #include <ctype.h> | 6 #include <ctype.h> |
7 #include <zlib.h> | 7 #include <zlib.h> |
8 #include <curl/curl.h> | 8 #include <curl/curl.h> |
9 #include <boost/version.hpp> | 9 #include <boost/version.hpp> |
10 #include <sqlite3.h> | |
10 | 11 |
11 | 12 |
12 TEST(Versions, Zlib) | 13 TEST(Versions, Zlib) |
13 { | 14 { |
14 ASSERT_STREQ(zlibVersion(), ZLIB_VERSION); | 15 ASSERT_STREQ(zlibVersion(), ZLIB_VERSION); |
22 | 23 |
23 TEST(Versions, Png) | 24 TEST(Versions, Png) |
24 { | 25 { |
25 ASSERT_EQ(PNG_LIBPNG_VER_MAJOR * 10000 + PNG_LIBPNG_VER_MINOR * 100 + PNG_LIBPNG_VER_RELEASE, | 26 ASSERT_EQ(PNG_LIBPNG_VER_MAJOR * 10000 + PNG_LIBPNG_VER_MINOR * 100 + PNG_LIBPNG_VER_RELEASE, |
26 png_access_version_number()); | 27 png_access_version_number()); |
28 } | |
29 | |
30 TEST(Versions, SQLite) | |
31 { | |
32 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion | |
33 assert(sqlite3_libversion_number() == SQLITE_VERSION_NUMBER ); | |
34 assert(strcmp(sqlite3_sourceid(), SQLITE_SOURCE_ID) == 0); | |
35 assert(strcmp(sqlite3_libversion(), SQLITE_VERSION) == 0); | |
36 | |
37 // Ensure that the SQLite version is above 3.7.0 | |
38 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); | |
27 } | 39 } |
28 | 40 |
29 | 41 |
30 #if ORTHANC_STATIC == 1 | 42 #if ORTHANC_STATIC == 1 |
31 TEST(Versions, ZlibStatic) | 43 TEST(Versions, ZlibStatic) |